Skip to content

Commit baefd65

Browse files
author
Jared Murrell
authored
fixed random git svn auth issue
1 parent b5c8228 commit baefd65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function _setup()
4444
AUTHORS=" --authors-file=${AUTHORS_FILE}"
4545
fi
4646
fi
47-
github_machine=$(echo ${GITHUB_URL}|awk -F'//' {'print $2'})
47+
github_machine=$(echo ${GITHUB_URL}|awk -F'/' {'print $3'})
4848
svn_machine=$(echo ${REPOSITORY}|awk -F'/' {'print $3'}|awk -F':' {'print $1'})
4949
cat > ~/.netrc <<EOF
5050
machine ${github_machine}
@@ -56,7 +56,7 @@ login ${SVN_USERNAME}
5656
password ${SVN_PASSWORD}
5757
EOF
5858
## Set our default SVN options
59-
SVN_OPTIONS="--trust-server-cert --non-interactive --no-auth-cache --username ${SVN_USERNAME} --password ${SVN_PASSWORD}"
59+
SVN_OPTIONS="--trust-server-cert --non-interactive --username ${SVN_USERNAME} --password ${SVN_PASSWORD}"
6060
## Get the repo name and full URL for the remote subversion repository
6161
REPO_NAME=$(svn info ${REPOSITORY} ${SVN_OPTIONS}|grep '^Path'|awk {'print $2'}|sed 's/ /-/g')
6262
REPO_URL=$(svn info ${REPOSITORY} ${SVN_OPTIONS}|grep '^URL'|awk {'print $2'})

0 commit comments

Comments
 (0)