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:
authorDave Reisner <dreisner@archlinux.org>2014-09-12 12:50:34 -0400
committerDave Reisner <dreisner@archlinux.org>2014-09-12 12:50:34 -0400
commite6f0a4902a8d1df06ae864525c0d09652c619190 (patch)
tree5805dedab36b9362fc7fd2d77a2c973a71ef7d29 /package.inc.sh
parent2362217ce1ad69f6a16151a6c749a7efcc12d9d6 (diff)
hide the class of errors we want to ignore with -qf
...instead of dumping *all* error output to the eternal bit bucket.
Diffstat (limited to 'package.inc.sh')
-rw-r--r--package.inc.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/package.inc.sh b/package.inc.sh
index 60f11bf..a65048f 100644
--- a/package.inc.sh
+++ b/package.inc.sh
@@ -121,9 +121,7 @@ package_checkout() {
package_init "$pkgname" remote || return 1
- # create a local tracking branch to clone from. ignore errors because
- # it might already exist.
- git branch --no-track "$remote/packages/$pkgname" "$remote/packages/$pkgname" 2>/dev/null
+ git branch -qf --no-track "$remote/packages/$pkgname" "$remote/packages/$pkgname"
git clone "$ASPROOT" --single-branch --branch "$remote/packages/$pkgname" \
"$startdir/$pkgname"