summaryrefslogtreecommitdiffstats
path: root/git-sh-setup-script
diff options
context:
space:
mode:
Diffstat (limited to 'git-sh-setup-script')
-rwxr-xr-xgit-sh-setup-script3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-sh-setup-script b/git-sh-setup-script
index 5bf471f781..84e15df1bc 100755
--- a/git-sh-setup-script
+++ b/git-sh-setup-script
@@ -11,7 +11,6 @@ die() {
exit 1
}
-[ -d "$GIT_DIR" ] &&
+[ -h "$GIT_DIR/HEAD" ] &&
[ -d "$GIT_DIR/refs" ] &&
-[ -d "$GIT_OBJECT_DIRECTORY" ] &&
[ -d "$GIT_OBJECT_DIRECTORY/00" ]