diff options
author | Johannes Sixt <j6t@kdbg.org> | 2011-03-16 09:14:33 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-17 14:53:10 -0700 |
commit | 23a32ffe803237b64651cbd104585d04b8fe33d6 (patch) | |
tree | 869a558a23688df4be373794ed5c8c7a03597014 /git-stash.sh | |
parent | ea2c69ed4728070be1d2ee953a6948398b859150 (diff) | |
download | git-23a32ffe803237b64651cbd104585d04b8fe33d6.tar.gz |
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>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-x | git-stash.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-stash.sh b/git-stash.sh index 7561b374d2..7c0d563c63 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 |