summaryrefslogtreecommitdiff
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
parent2362217ce1ad69f6a16151a6c749a7efcc12d9d6 (diff)
downloadasp32-e6f0a4902a8d1df06ae864525c0d09652c619190.tar.xz
hide the class of errors we want to ignore with -qf
...instead of dumping *all* error output to the eternal bit bucket.
-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"