From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: git@vger.kernel.org, Petr Baudis <pasky@ucw.cz>
Subject: Re: SCSI trees, merges and git status
Date: Mon, 18 Apr 2005 16:23:24 -0700 [thread overview]
Message-ID: <7vmzrvsm8j.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0504181429570.15725@ppc970.osdl.org> (Linus Torvalds's message of "Mon, 18 Apr 2005 14:39:09 -0700 (PDT)")
>>>>> "LT" == Linus Torvalds <torvalds@osdl.org> writes:
LT> Merged. Here's the command line history:
LT> ~/git/git-pull-script \
LT> rsync://www.parisc-linux.org/~jejb/scsi-rc-fixes-2.6.git
Maybe it is just me, but I have this setup:
$ /bin/ls -lF .git
total 20
-rw-rw-r-- 1 junio src 41 Apr 18 16:03 HEAD
-rw-rw-r-- 1 junio junio 41 Apr 18 15:07 MERGE_HEAD
-rw------- 1 junio src 2720 Apr 18 16:03 index
lrwxrwxrwx 1 junio src 18 Apr 18 15:55 objects -> ../../.git/objects/
My point being that .git/objects is a symbolic link and shares
object database with somewhere else.
However the "Getting object database" part trashed this symlink
when I tried to pull from my other repo locally. I am wondering
it the following might be a better alternative. A possible
downside in this approach is that you would not pull .git/heads
and .git/tags (i.e. Pesky stuff) from the remote anymore. Is it
a problem (I am also CC'ing Petr to hear his opinion on this).
If not, please apply.
[PATCH] Do not let rsync obliterate .git/object symbolic link.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
git-pull-script: e27215d3978635558c63859495d97f8114b4ece3
--- a/git-pull-script
+++ b/git-pull-script
@@ -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
next prev parent reply other threads:[~2005-04-18 23:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-18 20:28 SCSI trees, merges and git status James Bottomley
2005-04-18 21:39 ` Linus Torvalds
2005-04-18 23:14 ` James Bottomley
2005-04-19 0:03 ` Linus Torvalds
2005-04-19 0:10 ` David Woodhouse
2005-04-19 0:16 ` James Bottomley
2005-04-19 0:41 ` David Woodhouse
2005-04-19 0:13 ` James Bottomley
2005-04-19 0:29 ` Linus Torvalds
2005-04-19 2:17 ` James Bottomley
2005-04-19 3:04 ` Linus Torvalds
2005-04-18 23:23 ` Junio C Hamano [this message]
2005-04-18 23:28 ` Petr Baudis
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=7vmzrvsm8j.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=pasky@ucw.cz \
--cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.