From: Santi Béjar Date: Wed, 21 Nov 2007 16:15:35 GMT Subject: Re: Wishlist for a bundle-only transport mode Message-ID: <8aa486160711210815g5a1973c2see28a6263fc56030@mail.gmail.com> In-Reply-To: On Nov 21, 2007 4:59 PM, Johannes Schindelin wrote: > Hi, > > On Wed, 21 Nov 2007, Santi B?jar wrote: > > > 1) git-clone does not accept a bundle file, even if git-fetch does. I've > > made a patch to use git-fetch in git-clone for this. > > This, along with rewriting git-clone as a very thin wrapper over git-init, > -remote and -fetch, is a really low hanging fruit. For the basic/normal mode it can be a very thin wrapper but you have to support --local, --shared, --reference... > > 2) The bundles created with "git bundle" does not record the HEAD, they > > resolve the symbolic name to a branch name. > > It imitates ls-remote output. No, it does not. With a newly created project with one commit: $ git ls-remote git.git b71992713c17c3a29f9566e1b50e8cf402375faf HEAD b71992713c17c3a29f9566e1b50e8cf402375faf refs/heads/master $ git bundle create git.bdl HEAD master $ git bundle list-heads git.bdl b71992713c17c3a29f9566e1b50e8cf402375faf refs/heads/master b71992713c17c3a29f9566e1b50e8cf402375faf refs/heads/master Santi