From: Johannes Sixt Date: Wed, 16 Mar 2011 08:14:33 +0000 (+0100) Subject: stash: fix incorrect quoting in cleanup of temporary files X-Git-Tag: v1.7.5-rc0~37^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=23a32ffe803237b64651cbd104585d04b8fe33d6;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-stash.sh b/git-stash.sh index 7561b374d..7c0d563c6 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -17,7 +17,7 @@ require_work_tree cd_to_toplevel TMP="$GIT_DIR/.git-stash.$$" -trap 'rm -f "$TMP-*"' 0 +trap 'rm -f "$TMP-"*' 0 ref_stash=refs/stash