Skip to content
Permalink
Browse files

[JENKINS-37185] Honor checkout timeout

  • Loading branch information
superboum committed Aug 4, 2016
1 parent 00731f9 commit f2c632c6a539d56ee2acf82161bd534e2d86733d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java
@@ -1976,7 +1976,9 @@ public void execute() throws GitException, InterruptedException {

if (branch!=null && deleteBranch) {
// First, checkout to detached HEAD, so we can delete the branch.
launchCommand("checkout", "-f", ref);
ArgumentListBuilder args = new ArgumentListBuilder();
args.add("checkout", "-f", ref);
launchCommandIn(args, workspace, environment, timeout);

// Second, check to see if the branch actually exists, and then delete it if it does.
for (Branch b : getBranches()) {

0 comments on commit f2c632c

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