Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-37185] Honor checkout timeout
  • Loading branch information
Quentin Dufour committed Aug 4, 2016
1 parent 00731f9 commit f2c632c
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -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()) {
Expand Down

0 comments on commit f2c632c

Please sign in to comment.