Code

[PATCH] Do not let rsync obliterate .git/object symbolic link.
authorJunio C Hamano <junkio@cox.net>
Mon, 18 Apr 2005 23:49:21 +0000 (16:49 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Apr 2005 23:49:21 +0000 (16:49 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
git-pull-script

index 407488ae9437e90299d6c4b0083cd05342d6c4f9..b873203ccc70292c08aa0c996ec02b757a93c3ef 100755 (executable)
@@ -6,7 +6,7 @@
 merge_repo=$1
 
 echo "Getting object database"
-rsync -avz --ignore-existing $merge_repo/ .git/
+rsync -avz --ignore-existing $merge_repo/objects/. .git/objects/.
 
 echo "Getting remote head"
 rsync -avz $merge_repo/HEAD .git/MERGE_HEAD