X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=git-legacy-stash.sh;h=53fa5743018f19d8428f4a24379907bcbb6d80bf;hp=07ad4a545910da5ff5a591c159da292d5101dec3;hb=57b530125e022de79f5f0b208bc0a5ee67c18b77;hpb=c22f63c40f0a576f3938dfd26c976ec052aa7fe2 diff --git a/git-legacy-stash.sh b/git-legacy-stash.sh index 07ad4a5459..53fa574301 100755 --- a/git-legacy-stash.sh +++ b/git-legacy-stash.sh @@ -193,7 +193,8 @@ create_stash () { GIT_INDEX_FILE="$TMPindex" && export GIT_INDEX_FILE && git diff-index --name-only -z HEAD -- "$@" >"$TMP-stagenames" && - git update-index -z --add --remove --stdin <"$TMP-stagenames" && + git update-index --ignore-skip-worktree-entries \ + -z --add --remove --stdin <"$TMP-stagenames" && git write-tree && rm -f "$TMPindex" ) ) ||