From: Junio C Hamano Date: Tue, 03 Nov 2009 00:36:27 GMT Subject: Re: [PATCH] Update packfile transfer protocol documentation Message-ID: <7vtyxctpf8.fsf@alter.siamese.dyndns.org> In-Reply-To: <20091102235707.GV10505@spearce.org> "Shawn O. Pearce" writes: > Junio C Hamano wrote: > ... >> Shouldn't we say "the client MUST NOT make reference update request if >> everything is up to date" which would imply that in practice there is no >> reason to send an empty pack data? > > Create a new branch to point at an existing object. Branch creation > causes a pack to be expected, but if you are creating a new branch > that points at an existing object there is nothing to pack. E.g.: > > git remote add -f A user@host:proj.git > git push A A/master:refs/heads/new-branch > > causes a 0 object pack file to be sent, assuming the remote project's > master branch has not changed in between the two commands. Ahh, you are right. Thanks.