Created
November 13, 2008 16:54
-
-
Save thewoolleyman/24496 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS X Subversion Hack: Make sure user has svn credentials cached in cleartest | |
* NOTE: this is a hack, but otherwise the --non-interactive flag does not work, which is required for cruise. We should find out the root cause, see this bug: http://www.pivotaltracker.com/story/show/233525 | |
* NOTE: You will need the projectuser's SVN password for this step. | |
* make sure you are logged in as the projectuser | |
rm -rf ~/.subversion | |
* Run the Utilities/Keychain Access app - delete all login entries. | |
svn log --limit=3 https://svn.pivotallabs.com/subversion/sandbox/trunk | |
o Accept cert permanently, type projectuser's svn password | |
* Edit ~/.subversion/auth/svn.simple/<some hex filename>, make it look like this: | |
K 8 | |
passtype | |
V 6 | |
simple | |
K 8 | |
password | |
V < length of projectuser svn password > | |
< projectuser svn password > | |
K 15 | |
svn:realmstring | |
V 44 | |
<https://svn.pivotallabs.com:443> Subversion | |
K 8 | |
username | |
V 8 | |
< projectuser svn username > | |
END | |
* Make a backup of this file, because it may get reverted | |
* Run the Utilities/Keychain Access app - it should contain a single login entry for the project user and each subversion https repo. | |
* Verify everything is working correctly (interactive and noninteractive for sandbox and client project): | |
export PROJECT_USER=happyclient | |
export PROJECT_USER_PW=change4menow # put the password in | |
svn log --username=$PROJECT_USER --password=$PROJECT_USER_PW --limit=3 https://svn.pivotallabs.com/subversion/sandbox/trunk | |
svn log --username=$PROJECT_USER --password=$PROJECT_USER_PW --limit=3 https://svn.pivotallabs.com/subversion/sandbox/trunk | |
svn log --username=$PROJECT_USER --password=$PROJECT_USER_PW --limit=3 --non-interactive https://svn.pivotallabs.com/subversion/sandbox/trunk | |
svn log --username=$PROJECT_USER --password=$PROJECT_USER_PW --limit=3 --non-interactive https://svn.pivotallabs.com/subversion/sandbox/trunk | |
* Do the steps above again to ensure they still work | |
history -c to clear out passwords from bash history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment