Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

When pruning, prune by remote name

  • Loading branch information...
commit e603bb0ece75220c65486ee5f9aaafaf6f8e8069 1 parent a1f63b8
@richievos richievos authored abayer committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/java/hudson/plugins/git/GitAPI.java
View
2  src/main/java/hudson/plugins/git/GitAPI.java
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.