From 1672f8c375624bee127f1c14c33517e4d774c93e Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 27 Sep 2014 15:51:28 -0400 Subject: set pull.rebase=true on new repo creation This ought to save some people trouble if they choose to develop on the default created branch. --- package.inc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.inc.sh b/package.inc.sh index d4e7a4e..aeea3ae 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -125,7 +125,9 @@ package_checkout() { git branch -qf --no-track {,}"$remote/packages/$pkgname" git clone "$ASPROOT" --single-branch --branch "$remote/packages/$pkgname" \ - "$startdir/$pkgname" + "$startdir/$pkgname" || return 1 + + git --git-dir="$startdir/$pkgname/.git" config pull.rebase true } package_get_repos_with_arch() { -- cgit v1.2.3-70-g09d2