]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-sh-setup.sh
git-sh-setup.sh: use rev-parse --git-path to get $GIT_DIR/objects
[thirdparty/git.git] / git-sh-setup.sh
index d968760139b0e7b9219a1602a2e646a3ed398136..94a5c6d9572b1115a6304191ba0fd0b7bbce3aea 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"