summaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorMatthias Lederhofer <matled@gmx.net>2007-06-03 14:46:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-06-06 23:07:53 (GMT)
commit493c774e58a05bbbac06e4ae1654ca3d24e4e5cf (patch)
tree0ba0afdae1fcb024f1323d34abff3049c26a5a1e /git-sh-setup.sh
parent4faac2468de86f4dfd482d55d7c9adc7f2796f07 (diff)
downloadgit-493c774e58a05bbbac06e4ae1654ca3d24e4e5cf.zip
git-493c774e58a05bbbac06e4ae1654ca3d24e4e5cf.tar.gz
git-493c774e58a05bbbac06e4ae1654ca3d24e4e5cf.tar.bz2
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-xgit-sh-setup.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index f24c7f2..9ac657a 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 () {