TFS credentials in subtree command

11 views
Skip to first unread message

Valerii Koval

unread,
Apr 13, 2018, 2:52:10 AM4/13/18
to git-tfs-dev
Hi,
I've started to use subtree command and faced with the fact that I can set the TFS password for the main TFS repo (in the command line) and should manually enter the password for each subtree I added to that repo in case I use git tfs fetch (for example). 
So, I'd like to try to figure out why it works this way and fix it if possible.

Also, I'd simplify the way the subtree command obtains the TFS credentials. Is it possible to use the main repo credentials first and if we get an error ask user to enter them manually? 
Also why not use the credentials saved in the git config file? 
Is it possible at all even without subtrees?

Here I have another question - how to debug the build? 
Is there any short guide how to start git tfs and attach to process or smth like that?

Thank you,
Valerii

Philippe Miossec

unread,
Apr 13, 2018, 4:00:16 AM4/13/18
to git-t...@googlegroups.com

I've started to use subtree command and faced with the fact that I can set the TFS password for the main TFS repo (in the command line) and should manually enter the password for each subtree I added to that repo in case I use git tfs fetch (for example). 

OK. I don't know now so much of the `subtree` command. It's a one shot contribution from someone and I never used it nor maintained it. I don't know in which state it is...

But that is great that a new contributor take care of it ;-)

So, I'd like to try to figure out why it works this way and fix it if possible.

Great! 


Also, I'd simplify the way the subtree command obtains the TFS credentials. Is it possible to use the main repo credentials first and if we get an error ask user to enter them manually? 

Good idea to try. 

Also why not use the credentials saved in the git config file? 
Is it possible at all even without subtrees?


I don't remember how the credentials are saved. But if it is the case, yes, do it.. 


Here I have another question - how to debug the build? 

The easier is surely to enter the git-tfs command line (in the executable parameters in the debug form of visual studio, set the working directory with the path of your repository and start the debugging 

Is there any short guide how to start git tfs and attach to process or smth like that?

No, but there is nothing different than how you attach to a process. Build your executable (to be sure that the source correspond to the executable), run your command and attach to the process from visual studio. 
But I prefer the previous solution to debug directly from VS. 

Thanks and good luck ;-)
Reply all
Reply to author
Forward
0 new messages