[PATCH] D27274: [git-llvm] Use --force-interactive when commiting to prompt password

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 11:20:55 PST 2016


mehdi_amini created this revision.
mehdi_amini added a reviewer: jlebar.
mehdi_amini added a subscriber: llvm-commits.

When svn does not know the password and it has to prompt, it needs to query.
However it won't when invoked from the Python script and instead fails with:

svn: E215004: Authentication failed and interactive prompting is disabled; see the --force-interactive option


https://reviews.llvm.org/D27274

Files:
  llvm/utils/git-svn/git-llvm


Index: llvm/utils/git-svn/git-llvm
===================================================================
--- llvm/utils/git-svn/git-llvm
+++ llvm/utils/git-svn/git-llvm
@@ -208,7 +208,7 @@
     # Now we're ready to commit.
     commit_msg = git('show', '--pretty=%B', '--quiet', rev)
     if not dry_run:
-        log(svn(svn_repo, 'commit', '-m', commit_msg))
+        log(svn(svn_repo, 'commit', '-m', commit_msg, '--force-interactive'))
         log('Committed %s to svn.' % rev)
     else:
         log("Would have committed %s to svn, if this weren't a dry run." % rev)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27274.79789.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161130/858abcb7/attachment.bin>


More information about the llvm-commits mailing list