Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error: The System cannot find the specified file. #31

Closed
mnuni opened this issue Mar 28, 2011 · 2 comments
Closed

Getting error: The System cannot find the specified file. #31

mnuni opened this issue Mar 28, 2011 · 2 comments

Comments

@mnuni
Copy link

mnuni commented Mar 28, 2011

Using

git-tfs.exe quick-clone http://mytfslocation:8080 $/mytfsdir MyNewGitRepo

This threw an error: "The system cannot find the specified file".
I thought this was due to an inability to connect to tfs or to the specified dir in TFS.
This was not the case. The issue was due to the git executable not being found on the system PATH. Adding git.exe ahead of git.cmd on the PATH env variable worked.

Note the error was thrown from GitHelpers.cs
protected virtual Process Start(string [] command, Action initialize)
..
var process = Process.Start(startInfo);

The startInfo contains the "startInfo.FileName = "git";"
The command git is not found.

Hope the above saves someone time :)

@spraints
Copy link
Member

The problem also could have been solved by doing "git tfs quick-clone..." instead of "git-tfs.exe quick-clone...".

@mnuni
Copy link
Author

mnuni commented Mar 29, 2011

Yes, good point, thanks. I added C:\Apps\GitTFSBridge to my PATH and git tfs works, i.e. don't need git-tfs [COMMAND]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants