git-svn, perl/Git.pm: extend and use Git->prompt method for querying users
commite9263e458055ab361a7292adc800d3e62b47b39f
authorSven Strickroth <sven.strickroth@tu-clausthal.de>
Tue, 18 Dec 2012 00:28:48 +0000 (18 01:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Dec 2012 01:21:26 +0000 (17 17:21 -0800)
tree4837e2357d01eb990c34d87c3c7b20d5d34ea61f
parent8f3cab2b4d7b6da8b69eea730e5774dcb208c50f
git-svn, perl/Git.pm: extend and use Git->prompt method for querying users

git-svn reads usernames and other user queries from an interactive
terminal. This cause GUIs (w/o STDIN connected) to hang waiting forever
for git-svn to complete (http://code.google.com/p/tortoisegit/issues/detail?id=967).

This change extends the Git::prompt helper, so that it can also be used
for non password queries, and makes use of it instead of using
hand-rolled prompt-response code that only works with the interactive
terminal.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
perl/Git.pm
perl/Git/SVN/Prompt.pm