Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Make git-sh-setup-script do what it was supposed to do
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>
git-sh-setup-script
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
3f81fc8
)
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
@@
-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" ]