git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re: [PATCH] Add git-bundle - pack objects and references for disconnected transfer

From
Mark Levedahl <mdl123@verizon.net>
Date
Feb 16, 2007, 12:45 UTC
Message-ID
<7238711.2657861171629916957.JavaMail.root@vms064.mailsrvcs.net>
Show 5 quoted lines
>From: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
>Date: 2007/02/16 Fri AM 05:57:20 CST
>To: "Shawn O. Pearce" <spearce@spearce.org>
>Cc: Mark Levedahl <mdl123@verizon.net>, git@vger.kernel.org
>Subject: Re: [PATCH] Add git-bundle - pack objects and references for disconnected transfer
Show 22 quoted lines
>Shawn O. Pearce wrote:
>> Mark Levedahl <mdl123@verizon.net> wrote:
>>> +# create the tar file, clean up
>>> +tar cf "$bfile" --absolute-names --transform="s,$tmp-,," \
>>> +    --verbose --show-transformed-names \
>>> +    "$references" "$pack"
>> 
>> I'm not sure this will work on FreeBSD.  Both 5.1 and 6.1 use tar
>> that does not know about --absolute-names, --transform, --verbose,
>> or --show-transformed-names.
>
>for portability, pax is the official choice :)  and it can even do path name modifications with -s.  but why again are we using tar there?  this data could easiliy be put in one mixed text/binary file, starting out with
>
>#!/bin/sh
>echo "This is a git bundle.  Use git-unbundle to process me." >&1
>exit
>### DATA ###
>
>or so
>
>cheers
>  simon
... I *tried* that, and it fails under Cygwin. Apparently cygwin's bash (or something) mangles data in the pipe (99% certain it will turn out to be a latent crlf issue)...
cat "$bfile" (
    read refs...
    git index-pack --stdin
)
worked several times, it only failed twice out of 8 bundles I tried. That's just a trifle bit too high a failure rate for my taste. ;^)
Mark
Next: Simon 'corecode' Schubert
Message 1 of 4 in “Re: Re: [PATCH] Add git-bundle - pack objects and references for disconnected transfer”
  1. Mark LevedahlFeb 16, 2007
  2. Simon 'corecode' SchubertFeb 16, 2007
  3. Johannes SchindelinFeb 16, 2007
  4. Mark LevedahlFeb 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.