From: Mark Levedahl <mdl123@verizon.net>
To: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>,
"Shawn O. Pearce" <spearce@spearce.org>
Cc: Mark Levedahl <mdl123@verizon.net>, git@vger.kernel.org
Subject: Re: Re: [PATCH] Add git-bundle - pack objects and references for disconnected transfer
Date: Fri, 16 Feb 2007 06:45:16 -0600 (CST) [thread overview]
Message-ID: <7238711.2657861171629916957.JavaMail.root@vms064.mailsrvcs.net> (raw)
>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
>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 reply other threads:[~2007-02-16 12:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 12:45 Mark Levedahl [this message]
2007-02-16 13:25 ` [PATCH] Add git-bundle - pack objects and references for disconnected transfer Simon 'corecode' Schubert
2007-02-16 13:44 ` Johannes Schindelin
2007-02-16 23:25 ` Mark Levedahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7238711.2657861171629916957.JavaMail.root@vms064.mailsrvcs.net \
--to=mdl123@verizon.net \
--cc=corecode@fs.ei.tum.de \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).