summaryrefslogtreecommitdiff
path: root/builtin/archive.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-09-11 10:24:26 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-12 11:10:22 +0900
commit5b4efea666951efe0770f8d5a301f8917015315f (patch)
tree81716c784144cb20544ef275e25cd51444493d67 /builtin/archive.c
parentGit 2.9.5 (diff)
downloadtgif-5b4efea666951efe0770f8d5a301f8917015315f.tar.xz
cvsimport: shell-quote variable used in backticks
We run `git rev-parse` though the shell, and quote its argument only with single-quotes. This prevents most metacharacters from being a problem, but misses the obvious case when $name itself has single-quotes in it. We can fix this by applying the usual shell-quoting formula. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/archive.c')
0 files changed, 0 insertions, 0 deletions