Commit 3592f93a authored by szager@chromium.org's avatar szager@chromium.org

Add .git-credentials file.

TBR=cmp@chromium.org

Review URL: https://codereview.chromium.org/19872002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@212687 0039d316-1c4b-4281-b951-d872f2087c98
parent 578e5e54
......@@ -129,6 +129,11 @@ cat <<EOF > "${rundir}/tmp/.netrc"
machine localhost login ${username} password ${password}
EOF
# Create a .git-credentials file, to enable password-less push.
cat <<EOF > "${rundir}/tmp/.git-credentials"
http://${username}:${password}@localhost:8080
EOF
echo
echo "To start gerrit server:"
echo " ${rundir}/bin/gerrit.sh start"
......@@ -136,6 +141,9 @@ echo
echo "To use the REST API:"
echo " curl --netrc-file ${rundir}/tmp/.netrc http://localhost:8080/<endpoint>"
echo
echo "To enable 'git push' without a password prompt:"
echo " git config credential.helper 'store --file=${rundir}/tmp/.git-credentials'"
echo
echo "To stop the server:"
echo " ${rundir}/bin/gerrit.sh stop"
echo
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment