Skip to content
Permalink
Browse files

[FIXED JENKINS-8656] If branch spec is an empty string, due to an emp…

…ty parameter, etc, use **.
  • Loading branch information
abayer committed Apr 13, 2011
1 parent a85452d commit dc575dce269020afe79bf0224c906b2520c5438d
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/main/java/hudson/plugins/git/GitSCM.java
@@ -434,6 +434,11 @@ private String getSingleBranch(AbstractBuild<?, ?> build) {
ParametersAction parameters = build.getAction(ParametersAction.class);
if (parameters != null)
branch = parameters.substitute(build, branch);

// Check for empty string - replace with "**" when seen.
if (branch.equals(""))
branch = "**";

return branch;
}

0 comments on commit dc575dc

Please sign in to comment.
You can’t perform that action at this time.