Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-17997

Improve git branch handling for CircleCI generate.sh

    XMLWordPrintableJSON

Details

    Description

      The generate.sh script assumes a base git branch that is local and named after the official repo branch (e.g. `cassandra-3.11`). This may not be a local branch if the developer has recently cloned the repo and is creating a work branch, and will lead to the git commands in generate.sh failing:

       

      ```

      fatal: ambiguous argument 'cassandra-3.11...HEAD': unknown revision or path not in the working tree.
      Use '--' to separate paths from revisions, like this:
      'git <command> [<revision>...][<file>...]'

      ```

      We should be able to make some sanity checks to better guide or warn the developer if things aren't set up properly to check against git.

      Attachments

        Issue Links

          Activity

            People

              dchenbecker Derek Chen-Becker
              dchenbecker Derek Chen-Becker
              Derek Chen-Becker
              Andres de la Peña, Berenguer Blasi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: