diff options
author | Matthias Lederhofer <matled@gmx.net> | 2007-06-03 16:46:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-06-06 16:07:53 -0700 |
commit | 493c774e58a05bbbac06e4ae1654ca3d24e4e5cf (patch) | |
tree | 0ba0afdae1fcb024f1323d34abff3049c26a5a1e /git-sh-setup.sh | |
parent | 4faac2468de86f4dfd482d55d7c9adc7f2796f07 (diff) | |
download | git-493c774e58a05bbbac06e4ae1654ca3d24e4e5cf.tar.gz |
rev-parse: introduce --is-bare-repository
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-sh-setup.sh')
-rwxr-xr-x | git-sh-setup.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh index f24c7f2d23..9ac657a70e 100755 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -29,11 +29,7 @@ set_reflog_action() { } is_bare_repository () { - git-config --bool --get core.bare || - case "$GIT_DIR" in - .git | */.git) echo false ;; - *) echo true ;; - esac + git-rev-parse --is-bare-repository } cd_to_toplevel () { |