summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f81fc8)
raw | patch | inline | side by side (parent: 3f81fc8)
author | Linus Torvalds <torvalds@osdl.org> | |
Sat, 6 Aug 2005 17:04:50 +0000 (10:04 -0700) | ||
committer | Junio 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>
_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 | patch | blob | history |
diff --git a/git-sh-setup-script b/git-sh-setup-script
index 660c524ce86dfdcf818a1e6698ddf135bac28a58..5bf471f78150962a131ebc5f1b2e92e57cda70c9 100755 (executable)
--- a/git-sh-setup-script
+++ b/git-sh-setup-script
}
[ -d "$GIT_DIR" ] &&
-[ -d "$GIT_DIR/refs" ]
+[ -d "$GIT_DIR/refs" ] &&
[ -d "$GIT_OBJECT_DIRECTORY" ] &&
[ -d "$GIT_OBJECT_DIRECTORY/00" ]