From 19142f31449c5b7d81e3c61873d025d855886fef Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 19 Aug 2018 07:38:09 -0400 Subject: Use --local when creating a git clone for checkout While we're here, merge our 'git config' command into the clone. --- package.inc.sh | 10 ++++++---- 1 file 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() { -- cgit v1.2.3-70-g09d2