Commit 23a32ffe authored by Johannes Sixt's avatar Johannes Sixt Committed by Junio C Hamano

stash: fix incorrect quoting in cleanup of temporary files

The * was inside the quotes, so that the pattern was never expanded and the
temporary files were never removed. As a consequence, 'stash -p' left a
.git-stash-*-patch file in $GIT_DIR. Other code paths did not leave files
behind because they removed the temporary file themselves, at least in
non-error paths.
Signed-off-by: default avatarJohannes Sixt <>
Signed-off-by: default avatarJunio C Hamano <>
parent ea2c69ed
......@@ -17,7 +17,7 @@ require_work_tree
trap 'rm -f "$TMP-*"' 0
trap 'rm -f "$TMP-"*' 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment