]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
Make git-fetch-pack actually do all the unpacking etc.
authorLinus Torvalds <torvalds@g5.osdl.org>
Mon, 4 Jul 2005 23:35:13 +0000 (16:35 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 4 Jul 2005 23:35:13 +0000 (16:35 -0700)
commit75bfc6c232689ae06aba6a7d4aa15ac2791d9a11
tree5cbe1763905b2fa0ec6281c8b1003149a1eb72c0
parentfb9040cc83540fff9d05c8056433a4aa05b8a7c2
Make git-fetch-pack actually do all the unpacking etc.

It returns the result SHA1 on stdout, so you can do

remote=$(git-fetch-pack host:dir branchname)

and it will unpack the objects and "remote" will be the SHA1 name of the
branch on the other side.  You can then save that off, or merge it, or
whatever.
fetch-pack.c
upload-pack.c