This project is read-only.

Scripting of git-tf - how to avoid username / password prompts

Feb 26, 2013 at 9:17 PM
I'd like to run a number of git-tf pull's from within unattented bash command scripts executed across a ssh link.

As such I need to come up with a solution to work around git-tf's asking me for a username and password on the git-tf pull command invocation.

Has anyone done this successfully?
Feb 26, 2013 at 9:21 PM
You can set configuration parameters to avoid prompts:
git config git-tf.server.username [USERNAME]
git config git-tf.server.password [PASSWORD]
Feb 26, 2013 at 9:22 PM
Edited Feb 26, 2013 at 9:23 PM
Removing my reply as Ed's reply is simpler :)
Feb 27, 2013 at 1:30 PM
It seems that it works for git-tf pull, but not for git-tf clone. The git-tf clone still asks me for credentials if I add the suggested lines to the global config file.

I'm trying to implement a Linux build server, so I'd like to be able to clone out a specified version from TFS and run a build against it unattended (thusly re-generating the local config file each time I run the script).
Mar 9, 2013 at 8:21 PM
I had the sample problem and I changed the code to accept the username and password as parameters in clone/pull/fetch -
Mar 11, 2013 at 4:51 PM
Hello yosy,

This is great ! Thank you so much for your contribution, can you please submit a pull request for your changes and send us the contribution agreement that can be found here :

Mar 15, 2013 at 12:53 PM
Edited Mar 15, 2013 at 1:38 PM
Hi Youhana,
I will send a pull request, I will just add tests before.

EDIT: As I saw there are no test for the base Command class.. am I right?
Mar 18, 2013 at 9:43 PM
Hi Youhana,
I can't sign the contribution agreement, If you want you can take my code from github and add to gittf (I am ok with that).
Even though I can push to my fork, I keep getting an error -
fatal: recursion detected in die handler