jenkinsci / jenkinsci/git-plugin
[JENKINS-21536] GIT_BRANCH should not change after merge
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
I checkout origin/myBranch. Because last commit is also on master branch the GIT_BRANCH is set to master.
Similar issue when I use "merge before use" option and set "branch to merge to" GIT_BRANCH is set to latest commit(in this case origin/master) not the checkouted branch.
---
Originally reported by fugi, imported from: GIT_BRANCH should not change after merge
Raw content of original issue
I checkout origin/myBranch. Because last commit is also on master branch the GIT_BRANCH is set to master.
Similar issue when I use "merge before use" option and set "branch to merge to" GIT_BRANCH is set to latest commit(in this case origin/master) not the checkouted branch.
Contributor guide
Assessment
This issue has not been assessed yet.