summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-playtree-setup4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-playtree-setup b/git-playtree-setup
index 184de4d..5ef5c18 100755
--- a/git-playtree-setup
+++ b/git-playtree-setup
@@ -7,6 +7,8 @@
# mkdir .git/some/play/thing
# cd .git/some/play/thing
# git-playtree-setup .
+#
+# Honours GIT_PLAYTREE_DEFAULT_BRANCH, which currently defaults to "master"
set -e${GIT_PLAYTREE_SETUP_DEBUG}
@@ -26,7 +28,7 @@ case "$gcd" in
*) gcd="../$gcd" ;;
esac
-git init -q
+git -c init.defaultBranch=${GIT_PLAYTREE_DEFAULT_BRANCH-master} init -q
git config gc.auto 0
unset_all () { git config --local --unset-all $key || [ $? = 5 ]; }