Skip to content

Commit

Permalink
When pruning, prune by remote name
Browse files Browse the repository at this point in the history
  • Loading branch information
richievos authored and abayer committed Apr 1, 2011
1 parent a1f63b8 commit e603bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/git/GitAPI.java
Expand Up @@ -210,7 +210,7 @@ public String describe(String commitIsh) throws GitException {

public void prune(RemoteConfig repository) throws GitException {
ArgumentListBuilder args = new ArgumentListBuilder();
args.add("remote", "prune", repository.getURIs().get(0).toPrivateString());
args.add("remote", "prune", repository.getName());

launchCommand(args);
}
Expand Down

0 comments on commit e603bb0

Please sign in to comment.