Details
-
Improvement
-
Status: Resolved
-
Major - P3
-
Resolution: Fixed
-
None
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
- related to
-
EVG-3446 Cannot patch if no correspondingly-named branch is available locally
-
- Closed
-
-
SERVER-27845 Remove logic in etc/evergreen.yml to create a branch that tracks the remote branch
-
- Closed
-
-
SERVER-27126 Remove reference to mongodb-mongo-master Evergreen project in burn_in_tests.py script
-
- Closed
-