summaryrefslogtreecommitdiff
path: root/bin/bstraph
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-12-03 21:48:53 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-12-04 10:24:24 -0700
commite4968b90370100b6b7d4afca563568f06b6c5f2e (patch)
treef4f62738574bac308a80085a8d16a50da2f7c617 /bin/bstraph
parent1017e90e4b117df5871fe6447fb6587a5bd98cb5 (diff)
downloaddotfiles-e4968b90370100b6b7d4afca563568f06b6c5f2e.tar.gz
move most repository git config into included files & some tidying
Diffstat (limited to 'bin/bstraph')
-rwxr-xr-xbin/bstraph7
1 files changed, 0 insertions, 7 deletions
diff --git a/bin/bstraph b/bin/bstraph
index b621aa24..9d53c028 100755
--- a/bin/bstraph
+++ b/bin/bstraph
@@ -37,19 +37,12 @@ done
bin/hstow restow .
if command -v git >/dev/null; then
- # Use a rebase workflow as I'm the only committer.
- git config pull.rebase true
-
- git config user.signingkey 8DC2487E51ABDD90B5C4753F0F56D0553B6D411B
-
for branch in $(git for-each-ref \
--format='%(refname:short)' refs/heads/); do
git rev-parse "$branch"@{upstream} >/dev/null 2>&1 \
&& git branch --unset-upstream "$branch"
done
- git config push.default nothing
# Ensure 'git push-all' non-force pushes master to origin.
- git config remote.pushDefault origin
git config --unset branch.master.pushRemote ||:
# Ensure 'git push-all' force pushes localhost's branch to origin.
git config branch."$(hostname | sed -e 's#\..*$##')".pushRemote origin