]> granicus.if.org Git - llvm/commit
[git-llvm] Only use --force-interactive when supported
authorShoaib Meenai <smeenai@fb.com>
Sun, 10 Mar 2019 01:34:42 +0000 (01:34 +0000)
committerShoaib Meenai <smeenai@fb.com>
Sun, 10 Mar 2019 01:34:42 +0000 (01:34 +0000)
commitdf9bea7129f8a6fa52ad36cee53534d8353295c9
tree1920b0f7e42ab316c8b5feeff37119a403d22745
parent324dd572977ab9cd0e05d8ba0de0ab50ba2502bd
[git-llvm] Only use --force-interactive when supported

The --force-interactive option was introduced in SVN 1.8, and trying to
pass it to older SVN clients causes an error; CentOS 7 includes SVN 1.7,
for example, so this makes `git llvm` not usable out of the box. Older
clients would be interactive by default anyway [1], so just don't pass
the option if it's not supported.

An alternative would be to check the version instead of checking the
help text, but I think directly detecting the presence of the option is
more direct.

[1] http://svn.apache.org/viewvc?view=revision&revision=1424037

Differential Revision: https://reviews.llvm.org/D59161

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355782 91177308-0d34-0410-b5e6-96231b3b80d8
utils/git-svn/git-llvm