Merge branch 'ti/glibc-stdio-mutex-from-signal-handler' into maint
[gitweb.git] / git-sh-setup.sh
index c42c6e6365090e22ec7892baa51b919f2898e956..4691fbcb64fe7ecbc58930bb96d4e6b28e2b87a7 100644 (file)
@@ -344,7 +344,7 @@ git_dir_init () {
                echo >&2 "Unable to determine absolute path of git directory"
                exit 1
        }
-       : ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
+       : ${GIT_OBJECT_DIRECTORY="$(git rev-parse --git-path objects)"}
 }
 
 if test -z "$NONGIT_OK"