> On Tue, Apr 12, 2011 at 7:56 AM, stefan.sedich <
stefan.sed...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Trying to do this on a bare repository:
>
> > using (var repo = Repository.Open(path))
> > {
> > var pack = new ReceivePack(repo);
> > pack.SendAdvertisedRefs(new
> > RefAdvertiser.PacketLineOutRefAdvertiser(new
> > PacketLineOut(Response.OutputStream)));
> > }
>
> > where path is the path to c:\git\test.git which is a bare repository,
> > the error I am getting is: "Unknown repository format ""; expected
> > "0"."
>
> > If I use a non bare repository it is ok, only seems to happen on my
> > bare repositories.
>
> > Thanks
> > Stefan
>
> > --