-
Bug
-
Resolution: Duplicate
-
Critical
-
Jenkins ver. 1.570; Git Client 1.9.1
Steps:
1. Setup a repo with such branches:
A/SameNameBranch
B/SameNameBranch
2. Setup job to poll "B/SameNameBranch"
3. Watch never ending changes
Expected:
plugin executes this command on getting current commit hash:
git ls-remote -h git@repo.org:user/some.git B/SameNameBranch
Actual:
plugin executes WRONG command on getting current commit hash:
git ls-remote -h git@repo.org:user/some.git SameNameBranch
It skips full branch name and only uses last path component. This command then returns list of all branches ending with "SameNameBranch", and "A" version has different commit than the needed one. Please just make it to call command with full branch name