diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-08-15 20:55:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-08-15 21:39:07 -0700 |
commit | 312efe9b58edb428132f0bf0fdc7f3d6a41f1183 (patch) | |
tree | d95ff4c8adad3d0e084ad1eb9bc0edb4a5d2bc0c /git-clone.sh | |
parent | d250626cbbfc1d047b234681d2f71f56e3ada07a (diff) | |
download | git-312efe9b58edb428132f0bf0fdc7f3d6a41f1183.tar.gz |
git-clone: allow --bare clone
This is a stop-gap to work around problem with git-init without
intrusive changes.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-x | git-clone.sh | 7 |
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 |