fast-import: use git_path() for accessing .git dir instead of get_git_dir()
[gitweb.git] / git-stash.sh
index d4cf818be9488f1b94fdf4766a8f73db6bfd1029..b6d4b06c5f9ab00c4b9708b9fe310a6b266ab663 100755 (executable)
@@ -20,7 +20,7 @@ require_work_tree
 cd_to_toplevel
 
 TMP="$GIT_DIR/.git-stash.$$"
-TMPindex=${GIT_INDEX_FILE-"$GIT_DIR/index"}.stash.$$
+TMPindex=${GIT_INDEX_FILE-"$(git rev-parse --git-path index)"}.stash.$$
 trap 'rm -f "$TMP-"* "$TMPindex"' 0
 
 ref_stash=refs/stash