Sample Header Ad - 728x90

How to make svn save credentials when --non-interactive

14 votes
3 answers
58185 views
I'm trying to get svn to save my https username+password to ~/.subversion from within an automated script. I can pass creds on the command-line but I do not want to be prompted about whether to save the password unencrypted. Unfortunately this does not create ~/.subversion/: svn --non-interactive --trust-server-cert --username myusername --password secret co https://private.example.com/src/repo/ FYI I'm trying to do this for a Dockerfile that invokes a bower install with a bower.json that references a password-protected svn repo. Unfortunately there's no way to pass the svn credentials to bower via command-line or environment. I am currently working around it by running svn interactively and letting it create ~/.subversion, then zipping up that entire directory and ADDing it in the Dockerfile. I guess I could look at the file formats in ~/.subversion and create it with a script, but would rather let svn do it.
Asked by jamshid (384 rep)
Mar 18, 2015, 07:22 PM
Last activity: Oct 8, 2021, 02:56 PM