Skip to content

Commit

Permalink
Merge pull request #137 from blatinville/ExpandReferenceRepo
Browse files Browse the repository at this point in the history
Expand reference repo
  • Loading branch information
ndeloof committed Feb 22, 2013
2 parents 4e23a5c + ee80bfa commit 4894b1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/hudson/plugins/git/GitSCM.java
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,9 @@ public Collection<Revision> invoke(File localWorkspace, VirtualChannel channel)
//
boolean successfullyCloned = false;
for (RemoteConfig rc : repos) {
final String expandedReference = environment.expand(reference);
try {
git.clone(rc.getURIs().get(0).toPrivateString(), rc.getName(), useShallowClone, reference);
git.clone(rc.getURIs().get(0).toPrivateString(), rc.getName(), useShallowClone, expandedReference);
successfullyCloned = true;
break;
} catch (GitException ex) {
Expand Down

0 comments on commit 4894b1b

Please sign in to comment.