git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Use symlinks with rsync in core tutorial

From
Ron Parker <rdparker@gmail.com>
Date
Feb 21, 2006, 00:37 UTC
Message-ID
<1cf1c57a0602201637g161bbc41x732675573c0b42d7@mail.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
Message 1 of 1 in “Use symlinks with rsync in core tutorial”
  1. Use symlinks with rsync in core tutorialRon Parker, Feb 21, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.