git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [JGIT] Pushing the HEAD ref?
@ 2009-03-17  4:04 Daniel Cheng
  2009-03-17 14:28 ` Shawn O. Pearce
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Cheng @ 2009-03-17  4:04 UTC (permalink / raw)
  To: git

Hi List,

When I develop the freenet transport, I found the refWriter in
WalkPushConnection never write the HEAD refs, even if this is a new
repository.
Is this the expected behaviour? This cause error when I clone the repository.

Regards,
Daniel Cheng.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [JGIT] Pushing the HEAD ref?
  2009-03-17  4:04 [JGIT] Pushing the HEAD ref? Daniel Cheng
@ 2009-03-17 14:28 ` Shawn O. Pearce
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2009-03-17 14:28 UTC (permalink / raw)
  To: Daniel Cheng; +Cc: git

Daniel Cheng <j16sdiz+freenet@gmail.com> wrote:
> 
> When I develop the freenet transport, I found the refWriter in
> WalkPushConnection never write the HEAD refs, even if this is a new
> repository.
> Is this the expected behaviour? This cause error when I clone the repository.

Nope.

Check WalkPushConnection's createNewRepository().  The method is
called from line 162 where we try to create a new HEAD symbolic
ref to one of the refs/heads/$name being pushed, and we also put
a tiny config file.  This way a repository pushed over sftp://
is a valid repository if you later get shell access to it.

Sounds like you didn't push a refs/heads/$name when you created
the repository, or you something is broken in this section.

-- 
Shawn.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-17 14:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-17  4:04 [JGIT] Pushing the HEAD ref? Daniel Cheng
2009-03-17 14:28 ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).