We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 557bd83 commit c697b57Copy full SHA for c697b57
git-pull.sh
@@ -240,7 +240,7 @@ test true = "$rebase" && {
240
if ! git rev-parse -q --verify HEAD >/dev/null
241
then
242
# On an unborn branch
243
- if test -f "$GIT_DIR/index"
+ if test -f "$(git rev-parse --git-path index)"
244
245
die "$(gettext "updating an unborn branch with changes added to the index")"
246
fi
git-stash.sh
@@ -20,7 +20,7 @@ require_work_tree
20
cd_to_toplevel
21
22
TMP="$GIT_DIR/.git-stash.$$"
23
-TMPindex=${GIT_INDEX_FILE-"$GIT_DIR/index"}.stash.$$
+TMPindex=${GIT_INDEX_FILE-"$(git rev-parse --git-path index)"}.stash.$$
24
trap 'rm -f "$TMP-"* "$TMPindex"' 0
25
26
ref_stash=refs/stash
0 commit comments