summaryrefslogtreecommitdiff
path: root/entry.c
diff options
context:
space:
mode:
authorØystein Walle <oystwa@gmail.com>2014-01-07 08:22:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-01-07 18:51:04 (GMT)
commit2a07e4374c0ba6f2e991965c99b448ccb563f2fc (patch)
treec05098f54001df66386863fda2062b7a2aceda02 /entry.c
parentc90d3dbe7db37f298e7ce858cfc4c494113f8945 (diff)
downloadgit-2a07e4374c0ba6f2e991965c99b448ccb563f2fc.zip
git-2a07e4374c0ba6f2e991965c99b448ccb563f2fc.tar.gz
git-2a07e4374c0ba6f2e991965c99b448ccb563f2fc.tar.bz2
stash: handle specifying stashes with $IFS
When trying to pop/apply a stash specified with an argument containing IFS whitespace, git-stash will throw an error: $ git stash pop 'stash@{two hours ago}' Too many revisions specified: stash@{two hours ago} This happens because word splitting is used to count non-option arguments. Make use of rev-parse's --sq option to quote the arguments for us to ensure a correct count. Add quotes where necessary. Also add a test that verifies correct behaviour. Helped-by: Thomas Rast <tr@thomasrast.ch> Signed-off-by: Øystein Walle <oystwa@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'entry.c')
0 files changed, 0 insertions, 0 deletions