* [PATCH] Documentation: git-svn: fix example for centralized SVN clone
@ 2008-11-09 22:00 Jan Krüger
2008-11-10 1:12 ` Eric Wong
0 siblings, 1 reply; 2+ messages in thread
From: Jan Krüger @ 2008-11-09 22:00 UTC (permalink / raw)
To: Git ML; +Cc: Junio C Hamano, Eric Wong
The example that tells users how to centralize the effort of the initial
git svn clone operation doesn't work properly. It uses rebase but that
only works if HEAD exists. This adds one extra command to create a
somewhat sensible HEAD that should work in all cases.
Signed-off-by: Jan Krüger <jk@jk.gs>
---
I have a feeling this looks a bit ugly, but I can't think of a simpler
solution (especially since we're not fetching the central repo's HEAD).
Still, it's certainly better than a broken example.
Documentation/git-svn.txt | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 84c8f3c..ba94cd1 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -544,6 +544,8 @@ have each person clone that repository with 'git-clone':
git remote add origin server:/pub/project
git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'
git fetch
+# Create a local branch from one of the branches just fetched
+ git checkout -b master FETCH_HEAD
# Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server)
git svn init http://svn.example.com/project
# Pull the latest changes from Subversion
--
1.6.0.3.578.g6a50
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation: git-svn: fix example for centralized SVN clone
2008-11-09 22:00 [PATCH] Documentation: git-svn: fix example for centralized SVN clone Jan Krüger
@ 2008-11-10 1:12 ` Eric Wong
0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2008-11-10 1:12 UTC (permalink / raw)
To: Jan Krüger; +Cc: aroben, Git ML, Junio C Hamano
Jan Krüger <jk@jk.gs> wrote:
> The example that tells users how to centralize the effort of the initial
> git svn clone operation doesn't work properly. It uses rebase but that
> only works if HEAD exists. This adds one extra command to create a
> somewhat sensible HEAD that should work in all cases.
>
> Signed-off-by: Jan Krüger <jk@jk.gs>
> ---
> I have a feeling this looks a bit ugly, but I can't think of a simpler
> solution (especially since we're not fetching the central repo's HEAD).
> Still, it's certainly better than a broken example.
*shrug* Seems alright with me.
Adam wrote the original example, maybe he knows better.
> Documentation/git-svn.txt | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
> index 84c8f3c..ba94cd1 100644
> --- a/Documentation/git-svn.txt
> +++ b/Documentation/git-svn.txt
> @@ -544,6 +544,8 @@ have each person clone that repository with 'git-clone':
> git remote add origin server:/pub/project
> git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'
> git fetch
> +# Create a local branch from one of the branches just fetched
> + git checkout -b master FETCH_HEAD
> # Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server)
> git svn init http://svn.example.com/project
> # Pull the latest changes from Subversion
> --
> 1.6.0.3.578.g6a50
--
Eric Wong
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-10 1:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-09 22:00 [PATCH] Documentation: git-svn: fix example for centralized SVN clone Jan Krüger
2008-11-10 1:12 ` Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox