{"thread":{"id":"16330","subject":"[PATCH resend] Documentation: git-svn: fix example for centralized SVN clone","startedAt":"2008-11-14T17:45:14Z","lastAt":"2008-11-15T07:56:58Z","messageCount":4,"participants":["Jan Krüger","Junio C Hamano","Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"95803","messageId":"20081114184514.6f7d437a@perceptron","threadId":"16330","inReplyTo":null,"subject":"[PATCH resend] Documentation: git-svn: fix example for centralized SVN clone","fromName":"Jan Krüger","fromEmail":"jk@jk.gs","sentAt":"2008-11-14T17:45:14Z","receivedAt":"2008-11-14T17:45:14Z","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---\nWhen I first sent this one I said I didn't like the solution all that\nmuch (it would be nicer to use origin/HEAD but we didn't fetch that)\nbut Eric said he thinks it's okay and the original author of the\nsection hasn't piped in. It's still better than a nonfunctional example\nin any case.\n\nPrevious discussion at\n<http://thread.gmane.org/gmane.comp.version-control.git/100472>.\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 \tgit remote add origin server:/pub/project\n \tgit config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'\n \tgit fetch\n+# Create a local branch from one of the branches just fetched\n+\tgit 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 \tgit svn init http://svn.example.com/project\n # Pull the latest changes from Subversion\n-- \n1.6.0.3.578.g6a50\n"},{"id":"95861","messageId":"7vljvl7d3k.fsf@gitster.siamese.dyndns.org","threadId":"16330","inReplyTo":"20081114184514.6f7d437a@perceptron","subject":"Re: [PATCH resend] Documentation: git-svn: fix example for centralized SVN clone","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-11-15T05:49:35Z","receivedAt":"2008-11-15T05:49:35Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Jan Krüger\" <jk@jk.gs> writes:\n\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> When I first sent this one I said I didn't like the solution all that\n> much (it would be nicer to use origin/HEAD but we didn't fetch that)\n> but Eric said he thinks it's okay and the original author of the\n> section hasn't piped in. It's still better than a nonfunctional example\n> in any case.\n\nI'll mark this Acked by Eric and apply to 'maint'.  Thanks, both.\n"},{"id":"95862","messageId":"20081115062927.GA426@hand.yhbt.net","threadId":"16330","inReplyTo":"7vljvl7d3k.fsf@gitster.siamese.dyndns.org","subject":"Re: [PATCH resend] Documentation: git-svn: fix example for centralized SVN clone","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2008-11-15T06:30:06Z","receivedAt":"2008-11-15T06:30:06Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Junio C Hamano <gitster@pobox.com> wrote:\n> \"Jan Krüger\" <jk@jk.gs> writes:\n> \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> > When I first sent this one I said I didn't like the solution all that\n> > much (it would be nicer to use origin/HEAD but we didn't fetch that)\n> > but Eric said he thinks it's okay and the original author of the\n> > section hasn't piped in. It's still better than a nonfunctional example\n> > in any case.\n> \n> I'll mark this Acked by Eric and apply to 'maint'.  Thanks, both.\n\nNo problem.\n\nI see what happened: I mis-CC-ed Adam as never had him in my aliases\nfile :x\n\n-- \nEric Wong\n"},{"id":"95864","messageId":"7vhc697779.fsf@gitster.siamese.dyndns.org","threadId":"16330","inReplyTo":"20081115062927.GA426@hand.yhbt.net","subject":"Re: [PATCH resend] Documentation: git-svn: fix example for centralized SVN clone","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-11-15T07:56:58Z","receivedAt":"2008-11-15T07:56:58Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Eric Wong <normalperson@yhbt.net> writes:\n\n> I see what happened: I mis-CC-ed Adam as never had him in my aliases\n> file :x\n\nAh, I see.  I should have checked with my \"git who\" alias.\n"}]}