From e6f0a4902a8d1df06ae864525c0d09652c619190 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 12 Sep 2014 12:50:34 -0400 Subject: hide the class of errors we want to ignore with -qf ...instead of dumping *all* error output to the eternal bit bucket. --- package.inc.sh | 4 +--- 1 file changed, 1 insertion(+), 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" -- cgit v1.2.3-54-g00ecf