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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2017.02.01
    • Component/s: Plugins
    • Labels:

      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

              • Assignee:
                sam.kleinman Sam Kleinman
                Reporter:
                max.hirschhorn Max Hirschhorn
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: