Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run SVN export without the prompt of username and password

Is it possible for me to do an SVN export without being prompt for the user and pass?

I give my username and pass, in the command:

svn export --username bavhbavh --password blahblah svn://svn.someSite.com/folder/folder2/exportFile"

But when running it, it still seems to ask me for a username and pass.

like image 587
user2166351 Avatar asked Mar 15 '13 10:03

user2166351


People also ask

How do I stop SVN asking for password?

To disable password caching entirely for any single Subversion command-line operation, pass the --no-auth-cache option to that command line. To permanently disable caching entirely, add the line store-passwords = no to your local machine's Subversion configuration file.

What is SVN Export command?

$ svn export a-wc my-export Export complete. Export directly from the repository (prints every file and directory): $ svn export file:///var/svn/repos my-export A my-export/test A my-export/quiz … Exported revision 15.


1 Answers

I do this same thing in one of my build scripts, although I also use this parameter --non-interactive (do no interactive prompting) and it seems to work pretty well.

So your command would look something like this:

svn export --username bavhbavh --password blahblah --non-interactive svn://svn.someSite.com/folder/folder2/exportFile"
like image 113
blamonet Avatar answered Oct 25 '22 16:10

blamonet