forcing branch switch

This commit is contained in:
Ronny Esterluss 2014-07-31 17:59:42 +02:00 committed by Eelco Dolstra
parent 6b88be040e
commit ee840be313

View file

@ -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") {