archimport: use safe_pipe_capture for user input
authorJeff King <peff@peff.net>
Mon, 11 Sep 2017 14:24:11 +0000 (10:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Sep 2017 02:08:15 +0000 (11:08 +0900)
commit8d0fad0a7a6ba34fd706c148fa7ed1f8eb2b8b26
tree6e975ad2e67ec9cd0d4cc88a3695970a031e5d23
parent4d4165b80d6b91a255e2847583bd4df98b5d54e1
archimport: use safe_pipe_capture for user input

Refnames can contain shell metacharacters which need to be
passed verbatim to sub-processes. Using safe_pipe_capture
skips the shell entirely.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-archimport.perl