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: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Mar 16, 2011 at 09:14 UTC
23a32ffe803237b64651cbd104585d04b8fe33d6
1 file changed
+1
-1
git-stash.sh
+1
-1
@@ -17,7 +17,7 @@ require_work_tree
17
cd_to_toplevel
18
19
TMP="$GIT_DIR/.git-stash.$$"
20
-trap 'rm -f "$TMP-*"' 0
20
+trap 'rm -f "$TMP-"*' 0
21
22
ref_stash=refs/stash
23