summaryrefslogtreecommitdiffstats
path: root/git-clone.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-xgit-clone.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-clone.sh b/git-clone.sh
index 4c9b1c9710..e4a9ac4bab 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -215,7 +215,12 @@ else
GIT_DIR="$D/.git"
fi &&
export GIT_DIR &&
-git-init $quiet ${template+"$template"} || usage
+GIT_CONFIG="$GIT_DIR/config" git-init $quiet ${template+"$template"} || usage
+
+if test -n "$bare"
+then
+ GIT_CONFIG="$GIT_DIR/config" git config core.bare true
+fi
if test -n "$reference"
then