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>2018-08-19 07:38:09 -0400
committerDave Reisner <dreisner@archlinux.org>2018-08-19 07:52:47 -0400
commit19142f31449c5b7d81e3c61873d025d855886fef (patch)
tree106cb8d0843ba1c376bb6490ea3db336ff8a7b25 /package.inc.sh
parentbb83e6b56361906ce781a9940ab9bea537f9a0a1 (diff)
Use --local when creating a git clone for checkout
While we're here, merge our 'git config' command into the clone.
Diffstat (limited to 'package.inc.sh')
-rw-r--r--package.inc.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/package.inc.sh b/package.inc.sh
index 6fcf8c3..7a9756d 100644
--- a/package.inc.sh
+++ b/package.inc.sh
@@ -164,10 +164,12 @@ package_checkout() {
git show-ref -q "refs/heads/$remote/packages/$pkgname" ||
git branch -qf --no-track {,}"$remote/packages/$pkgname"
- quiet_git clone "$ASPROOT" --single-branch --branch "$remote/packages/$pkgname" \
- "$pkgname" || return
-
- git --git-dir="$pkgname/.git" config pull.rebase true
+ quiet_git clone \
+ --local \
+ --single-branch \
+ --branch "$remote/packages/$pkgname" \
+ --config "pull.rebase=true" \
+ "$ASPROOT" "$pkgname" || return
}
package_get_repos_with_arch() {