Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-1327

git.get_project command should create git branch for project and have it track remote

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major - P3
    • Resolution: Fixed
    • None
    • v2017.02.01
    • app

    Description

      The Evergreen command line tool uses branch+"@{upstream}" to get the merge-base commit of the current commit and the latest commit of the associated branch. This technique is used by other scripts, including the burn_in_tests.py script in the mongodb/mongo repository. However, the invocation git merge-base <branch_name>@{upstream} HEAD fails to work in Evergreen because the environment that the git.get_project command creates doesn't include a branch named <branch_name> that tracks the project's configured branch.

      One solution would be to run git branch <branch_name> origin/<branch_name> as part of these git commands. Another approach would be to use git clone --branch=<branch_name>.

      Attachments

        Issue Links

          Activity

            People

              sam.kleinman Sam Kleinman (Inactive)
              max.hirschhorn@mongodb.com Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: