{"thread":{"id":"18337","subject":"[JGIT] Pushing the HEAD ref?","startedAt":"2009-03-17T04:04:16Z","lastAt":"2009-03-17T14:28:35Z","messageCount":2,"participants":["Daniel Cheng","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"108172","messageId":"ff6a9c820903162104v2ca62437ua3da6bafba3ea101@mail.gmail.com","threadId":"18337","inReplyTo":null,"subject":"[JGIT] Pushing the HEAD ref?","fromName":"Daniel Cheng","fromEmail":"j16sdiz+freenet@gmail.com","sentAt":"2009-03-17T04:04:16Z","receivedAt":"2009-03-17T04:04:16Z","isPatch":false,"sender":{"key":"j16sdiz+freenet@gmail.com","avatar":"https://gravatar.com/avatar/3e796e8a156ee86e305bfc1fbe01608302554ee3b5fa7eb8d1213b8877bfcabd?d=mp&s=160"},"body":"Hi List,\n\nWhen I develop the freenet transport, I found the refWriter in\nWalkPushConnection never write the HEAD refs, even if this is a new\nrepository.\nIs this the expected behaviour? This cause error when I clone the repository.\n\nRegards,\nDaniel Cheng.\n"},{"id":"108229","messageId":"20090317142835.GB20222@spearce.org","threadId":"18337","inReplyTo":"ff6a9c820903162104v2ca62437ua3da6bafba3ea101@mail.gmail.com","subject":"Re: [JGIT] Pushing the HEAD ref?","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-03-17T14:28:35Z","receivedAt":"2009-03-17T14:28:35Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Daniel Cheng <j16sdiz+freenet@gmail.com> wrote:\n> \n> When I develop the freenet transport, I found the refWriter in\n> WalkPushConnection never write the HEAD refs, even if this is a new\n> repository.\n> Is this the expected behaviour? This cause error when I clone the repository.\n\nNope.\n\nCheck WalkPushConnection's createNewRepository().  The method is\ncalled from line 162 where we try to create a new HEAD symbolic\nref to one of the refs/heads/$name being pushed, and we also put\na tiny config file.  This way a repository pushed over sftp://\nis a valid repository if you later get shell access to it.\n\nSounds like you didn't push a refs/heads/$name when you created\nthe repository, or you something is broken in this section.\n\n-- \nShawn.\n"}]}