index : asp32 | |
Archlinux32 fork of asp - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | package.inc.sh | 3 |
diff --git a/package.inc.sh b/package.inc.sh index a65048f..d4e7a4e 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -121,7 +121,8 @@ package_checkout() { package_init "$pkgname" remote || return 1 - git branch -qf --no-track "$remote/packages/$pkgname" "$remote/packages/$pkgname" + git show-ref -q "refs/heads/$remote/packages/$pkgname" || + git branch -qf --no-track {,}"$remote/packages/$pkgname" git clone "$ASPROOT" --single-branch --branch "$remote/packages/$pkgname" \ "$startdir/$pkgname" |