I'm trying to hook my git repository with Microsoft's Source Server feature such that people debugging into my binary will automatically pull source files down from github.com.
The git show command will get me the right file and version that I need, but since the debugger is not running on a computer with a local git repo of the project source code, I need "git show" to pull from github instead of a local directory. I'm imagining something like this:
git --no-pager "--git-dir=git://github.com/AArnott/dotnetopenid.git" show 93e76d5ff529b6c9921a984c3608c150ed4ee7a3
When the --git-dir argument is a local directory this works fine, but when it's a remote location it gives me an error such as:
fatal: Not a git repository: 'git://github.com/AArnott/dotnetopenid.git'
What git command will pull down a particular version of a particular file from a remote URL location?
Unfortunately git does not support fetching individual remote files. There are three workarounds:
git archive --remote=url master:somesubdir
) in tar format on stdin.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With