From: Ron Parker <rdp@inthefaith.net> Date: Mon Feb 20 18:05:39 2006 -0600
* Documentation/core-tutorial.txt: Use rsync -rl instead of -rL.
Signed-off-by: Ron Parker <rdp@inthefaith.net>
---
I think there is a typo in the core tutorial. It appears that symlinks must be preserved when doing an rsync otherwise HEAD does not point to the right ref, it becomes a copy of it. If I:
$ rsync -rL rsync://rsync.kernel.org/pub/scm/git/git.git/ .git
Then when IS
$ git-read-tree HEAD fatal: Not a git repository
is what I get. However, doing:
$ rsync -rl ...
seems to work. The only noticeable difference is that the second creates HEAD as a symlink.
Documentation/core-tutorial.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
79ac94c0b7f8e195cf07a51c393115e7d0636069
Show changes to Documentation/core-tutorial.txt +1 −2
diff --git a/Documentation/core-tutorial.txt b/Documentation/core-tutorial.txt index 4211c81..461f845 100644 --- a/Documentation/core-tutorial.txt +++ b/Documentation/core-tutorial.txt @@ -724,7 +724,7 @@ create your own copy of the git reposito ---------------- $ mkdir my-git $ cd my-git -$ rsync -rL rsync://rsync.kernel.org/pub/scm/git/git.git/ .git +$ rsync -rl rsync://rsync.kernel.org/pub/scm/git/git.git/ .git ---------------- followed by -- 1.2.1