Git Clone on local repository fails

42 views
Skip to first unread message

WesleyE

unread,
Aug 11, 2011, 10:38:53 AM8/11/11
to GitSharp
Hi All,

I'm just starting with Git&GitSharp, but I'm running in to an error
while cloning a local git repository. It gives an
"NotImplementedException" on
GitSharp.Core.Transport.TransportLocal.openFetch.

It seems weird that I can not clone an repository that is on an other
disk, or on a disk on my home server. This is the code that I am
using, am I doing something wrong?

string masterRepositoryFolder = "\\\\barbabenno\\Wesley
\\newRepo\\";
string localRepositoryFolder = "C:\\localRepo\\";

Git.Init(masterRepositoryFolder, true);

Repository localRepository =
Git.Clone(masterRepositoryFolder, localRepositoryFolder);

I did take a look at all the other transport streams, why are more
'difficult' transports like ssh, and AmazonS3 support and the simple
'local' stream not? Or am I looking in the wrong direction?

Also, creating an 'bare' git repository still creates the .git folder.
Is this common practice? The git command line tool seems to just
create the repository files in that directory.

Thanks,

Wesley

Meinrad Recheis

unread,
Aug 16, 2011, 9:44:50 AM8/16/11
to gits...@googlegroups.com
Hi Wesly,
You are not doing anything wrong but I am afraid these questions can be better answered by the jgit developers. We just ported their code and wrapped a nicer API around it. Sorry, that we can not do more for you.

Cheers,
-- henon


--
For infos about GitSharp visit http://www.eqqon.com/index.php/GitSharp
To join this group visit http://groups.google.com/group/gitsharp

Reply all
Reply to author
Forward
0 new messages