# [PATCH] Use symlinks with rsync in core tutorial

1 messages from 2006-02-21 to 2006-02-21. Participants: Ron Parker.
Thread: https://gitlist.dev/t/3410

## Ron Parker, 2006-02-21 00:37

Subject: [PATCH] Use symlinks with rsync in core tutorial
Message-ID: <1cf1c57a0602201637g161bbc41x732675573c0b42d7@mail.gmail.com>
URL: https://gitlist.dev/e/1cf1c57a0602201637g161bbc41x732675573c0b42d7%40mail.gmail.com

```
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
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

```
