Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To enable a credential helper program, specify the following setting:

[auth "default"]
credentialHelper = PATH [args]

The credentialHelper setting defines a path to a credential helper program and its optional arguments. The path can be either absolute or relative to the Git repository.

...

The initial script contains the following:

#!/bin/sh
  
echo username=svnUser
echo password=svnPassword
  
exit 0;

You can configure this script to fetch the credentials from some external source to log in to a Subversion repository. Use the standard Git credential helper input/output format with the exception that the command name is not required.

Input:

url = SVN_URL
protocol = SVN_URL_PROTOCOL
path = SVN_URL_PATH
username = PREFFERED_SVN_USER_NAME

Output:

username = SVN_USER_NAME
password = SVN_PASSWORD