From ee840be3130dc76c14d74946dde4eabe91677977 Mon Sep 17 00:00:00 2001 From: Ronny Esterluss Date: Thu, 31 Jul 2014 17:59:42 +0200 Subject: [PATCH] forcing branch switch --- src/lib/Hydra/Plugin/GitInput.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Plugin/GitInput.pm b/src/lib/Hydra/Plugin/GitInput.pm index 53f373d0..8c02de7e 100644 --- a/src/lib/Hydra/Plugin/GitInput.pm +++ b/src/lib/Hydra/Plugin/GitInput.pm @@ -40,7 +40,7 @@ sub _cloneRepo { if (defined $deepClone) { # Checkout the branch to look at its content. - $res = run(cmd => ["git", "checkout", "$branch"], dir => $clonePath); + $res = run(cmd => ["git", "checkout", "--force", "$branch"], dir => $clonePath); die "error checking out Git branch '$branch' at `$uri':\n$res->{stderr}" if $res->{status}; if (-f ".topdeps") {