DORMANTno replies

[PATCH] Use symlinks with rsync in core tutorial

From: Ron Parker <hidden>
Date: 2016-06-15 22:42:19
Subsystem: documentation, the rest · Maintainers: Jonathan Corbet, Linus Torvalds

From: Ron Parker <redacted>
Date: Mon Feb 20 18:05:39 2006 -0600

* Documentation/core-tutorial.txt: Use rsync -rl instead of -rL.

Signed-off-by: Ron Parker <redacted>


---

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help