I have the same issue (I'm using Git Publisher to update a branch when a build is successful).

The problem appears to be here (git-client-plugin/src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java):

public ObjectId getHeadRev(String url, String branch) throws GitException, InterruptedException {
	String[] branchExploded = branch.split("/");
	branch = branchExploded[branchExploded.length-1];
        ....
        args.add(branch);

Only the last path element of branch is provided to the command line, resulting in the behavior the reporter mentions above.

Why not just pass 'branch' to the command line verbatim (-h is already added, so there's no danger of pulling a tag)?

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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to