From: Mark Levedahl Date: Fri, 16 Feb 2007 21:58:01 GMT Subject: Re: [PATCH] Add git-unbundle - unpack objects and references for disconnected transfer Message-ID: <45D628E9.20605@verizon.net> In-Reply-To: <28763990.2658921171630394111.JavaMail.root@vms064.mailsrvcs.net> Mark Levedahl wrote: >> Also as Shawn pointed out, the script too heavily depends on GNU >> tar. Can we do something about it >> This one is easy, make tmp a directory, then build the tar file in that directory so the archive members don't include the tmp name, then just move the tar file to where it is needed... tmp="$GIT_DIR/bundle_tmp$$" references="$tmp/references" pack="$tmp/pack" trap 'rm -rf "$tmp"' 0 1 2 3 15 mkdir "$tmp" && echo "v1 git-bundle" > "$version" && ------ # create the tar file, clean up cd "$tmp" && tar cf bundle prerequisites references version pack && cd - && mv "$tmp/bundle" "$bfile" && rm -rf "$tmp" I believe that as this works, tar needs only to understand c, f, and -O. It is easy enough to search for gtar and use that, or allow user to define TAR. So, I think this is a non-issue. Mark