|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Ok, finally i figure out what is happening.
1. compareRemoteRevisionWithImpl adds remote name to each branch got from that remote (GitSCM.java:586)
2. getPattern add */ to the branch name, if it doesn't contain * or /
// if an unqualified branch was given add a "*/" so it will match branches
// from remote repositories as the user probably intended
In our case, our branch name contains /, then */ is not added. (BranchSpec.java:117)
3. remoteName+remoteBranch is compared against our branchName, it doesn't match.
Proposed fix:
update line BranchSpec.java:126 to
builder.append("(refs/heads/|refs/remotes/|remotes/|origin/)?");
with that fix, i think that block from line 116 to 120 will be not longer needed.
I'm working on a branch for this.
Cheers