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

Re: [PATCH] Add git-unbundle - unpack objects and references for disconnected transfer

From
Mark Levedahl <mdl123@verizon.net>
Date
Feb 16, 2007, 21:58 UTC
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
Previous: Mark LevedahlNext: Johannes Schindelin
Message 11 of 12 in “Re: Re: [PATCH] Add git-unbundle - unpack objects and references for disconnected transfer”
  1. Mark LevedahlFeb 16, 2007
  2. Junio C HamanoFeb 16, 2007
  3. Mark LevedahlFeb 16, 2007
  4. Junio C HamanoFeb 17, 2007
  5. Mark LevedahlFeb 17, 2007
  6. Junio C HamanoFeb 17, 2007
  7. Mark LevedahlFeb 17, 2007
  8. Junio C HamanoFeb 17, 2007
  9. Add git-bundle: move objects and references by archive.Mark Levedahl, Feb 18, 2007
  10. Mark LevedahlFeb 18, 2007
  11. Mark LevedahlFeb 16, 2007
  12. Johannes SchindelinFeb 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.