Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/package.inc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package.inc.sh')
-rw-r--r--package.inc.sh3
1 files changed, 2 insertions, 1 deletions
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"