]> git.ipfire.org Git - thirdparty/git.git/commitdiff
[PATCH] Make git-sh-setup-script do what it was supposed to do
authorLinus Torvalds <torvalds@osdl.org>
Sat, 6 Aug 2005 17:04:50 +0000 (10:04 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 6 Aug 2005 17:19:17 +0000 (10:19 -0700)
Duh. A missing && meant that half the tests that git-sh-setup-script were
_meant_ to do were actually totally ignored.

In particular, the git sanity checking ended up only testing that the
GIT_OBJECT_DIRECTORY was sane, not that GIT_DIR itself was..

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-sh-setup-script

index 660c524ce86dfdcf818a1e6698ddf135bac28a58..5bf471f78150962a131ebc5f1b2e92e57cda70c9 100755 (executable)
@@ -12,6 +12,6 @@ die() {
 }
 
 [ -d "$GIT_DIR" ] &&
-[ -d "$GIT_DIR/refs" ]
+[ -d "$GIT_DIR/refs" ] &&
 [ -d "$GIT_OBJECT_DIRECTORY" ] &&
 [ -d "$GIT_OBJECT_DIRECTORY/00" ]