Re: [PATCH] Update packfile transfer protocol documentation
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 15 quoted lines
> Junio C Hamano <gitster@pobox.com> 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.