{"thread":{"id":"16243","subject":"[PATCH] Documentation: git-svn: fix example for centralized SVN clone","startedAt":"2008-11-09T22:00:12Z","lastAt":"2008-11-10T01:12:32Z","messageCount":2,"participants":["Jan Krüger","Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"95285","messageId":"20081109230012.47adbb32@perceptron","threadId":"16243","inReplyTo":null,"subject":"[PATCH] Documentation: git-svn: fix example for centralized SVN clone","fromName":"Jan Krüger","fromEmail":"jk@jk.gs","sentAt":"2008-11-09T22:00:12Z","receivedAt":"2008-11-09T22:00:12Z","isPatch":true,"sender":{"key":"jk@jk.gs","avatar":"https://avatars.githubusercontent.com/u/1774?v=4"},"body":"The example that tells users how to centralize the effort of the initial\ngit svn clone operation doesn't work properly. It uses rebase but that\nonly works if HEAD exists. This adds one extra command to create a\nsomewhat sensible HEAD that should work in all cases.\n\nSigned-off-by: Jan Krüger <jk@jk.gs>\n---\nI have a feeling this looks a bit ugly, but I can't think of a simpler\nsolution (especially since we're not fetching the central repo's HEAD).\nStill, it's certainly better than a broken example.\n\n Documentation/git-svn.txt |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\nindex 84c8f3c..ba94cd1 100644\n--- a/Documentation/git-svn.txt\n+++ b/Documentation/git-svn.txt\n@@ -544,6 +544,8 @@ have each person clone that repository with 'git-clone':\n        git remote add origin server:/pub/project\n        git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'\n        git fetch\n+# Create a local branch from one of the branches just fetched\n+       git checkout -b master FETCH_HEAD\n # Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server)\n        git svn init http://svn.example.com/project\n # Pull the latest changes from Subversion\n--\n1.6.0.3.578.g6a50\n"},{"id":"95297","messageId":"20081110011232.GA11666@hand.yhbt.net","threadId":"16243","inReplyTo":"20081109230012.47adbb32@perceptron","subject":"Re: [PATCH] Documentation: git-svn: fix example for centralized SVN clone","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2008-11-10T01:12:32Z","receivedAt":"2008-11-10T01:12:32Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Jan Krüger <jk@jk.gs> wrote:\n> The example that tells users how to centralize the effort of the initial\n> git svn clone operation doesn't work properly. It uses rebase but that\n> only works if HEAD exists. This adds one extra command to create a\n> somewhat sensible HEAD that should work in all cases.\n> \n> Signed-off-by: Jan Krüger <jk@jk.gs>\n> ---\n> I have a feeling this looks a bit ugly, but I can't think of a simpler\n> solution (especially since we're not fetching the central repo's HEAD).\n> Still, it's certainly better than a broken example.\n\n*shrug*  Seems alright with me.\n\nAdam wrote the original example, maybe he knows better.\n\n>  Documentation/git-svn.txt |    2 ++\n>  1 files changed, 2 insertions(+), 0 deletions(-)\n> \n> diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\n> index 84c8f3c..ba94cd1 100644\n> --- a/Documentation/git-svn.txt\n> +++ b/Documentation/git-svn.txt\n> @@ -544,6 +544,8 @@ have each person clone that repository with 'git-clone':\n>         git remote add origin server:/pub/project\n>         git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'\n>         git fetch\n> +# Create a local branch from one of the branches just fetched\n> +       git checkout -b master FETCH_HEAD\n>  # Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server)\n>         git svn init http://svn.example.com/project\n>  # Pull the latest changes from Subversion\n> --\n> 1.6.0.3.578.g6a50\n\n-- \nEric Wong\n"}]}