[git-users] Re: Moving from local svn to git

2013-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/02/13 11:12, Alex Lewis wrote:
 I think you /might/ be missing a / the beginning of your URL after the 
 file:// part? So it 
 should be file:// like http://;, etc. but then */*home/krug/... so you 
 have 
 file://*/*home/krug/..

Great - that worked.

Now one more question:

I now did

git svn clone 
file:///home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia

and it worked (as I do not have a standard layout), but I get all files in the 
repo

/home/rkrug/svn/Documents/

and I would only like to have the ones in the directory and its subdirectories:

/home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia/

How can I now effectively split the svn repo in different git repos?

Rainer

 
 HTH
 
 On Friday, 1 February 2013 09:45:43 UTC, Rainer M Krug wrote:
 
 Hi
 
 I want to move from svn to git and clone my repositories for this. My 
 problem: I have no idea
 how I can clone a *local* svn repository. I found that
 
 git svn clone THEREPO --stdlayout
 
 should work, but I can't figure out what to use as THEREPO.
 
 The svn repo is located at 
 /home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia/
 and the working copy at 
 /home/rkrug/Documents/Publications/2010/Paper/NonSpatialAcacia/
 
 
 I tried the following:
 
 rkrug@ecolmod:~/tmp/test$ git svn clone 
 file://home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia/ 
 --stdlayout 
 Initialized empty Git repository in 
 /home/rkrug/tmp/test/NonSpatialAcacia/.git/ Bad URL passed
 to RA layer: Unable to connect to a repository at URL 
 'file://home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia': 
 Unable to open an 
 ra_local session to URL: Local URL 
 'file://home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia' 
 contains
 unsupported hostname at /usr/lib/git-core/git-svn line 2299
 
 
 
 rkrug@ecolmod:~/tmp/test$ git svn clone 
 svn://home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia/ 
 --stdlayout 
 Initialized empty Git repository in 
 /home/rkrug/tmp/test/NonSpatialAcacia/.git/ Name or service
 not known: Unable to connect to a repository at URL 
 'svn://home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia': 
 Unknown hostname
 'home' at /usr/lib/git-core/git-svn line 2299
 
 
 
 rkrug@ecolmod:~/tmp/test$ git svn clone 
 //home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia/ 
 --stdlayout Initialized
 empty Git repository in 
 /home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia/.git/ E: 
 'trunk' is not a
 complete URL  and a separate URL is not specified
 
 
 I am sure I am missing something really basic?
 
 Thanks,
 
 Rainer
 
 -- You received this message because you are subscribed to the Google Groups 
 Git for human
 beings group. To unsubscribe from this group and stop receiving emails from 
 it, send an email
 to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/ez6zc...@public.gmane.org 
 For more options,
 visit https://groups.google.com/groups/opt_out.
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRC57uAAoJENvXNx4PUvmC+F8IAIhEnZBsf3ogQiSve7bFSZg/
WElovA+AzTvGB/vuQuxYDsnT2F0kYX0tfUBXgdnXFJ+R5Lg+kKPf5hkzL8yJjNBb
LujXHNEANcfTZK/xOozVXMXPIOy+cGhLaad4jqhM6ALRPL+xUSR72cOVjrguc72Z
+IEaFVUc2KEBYTtJTUeQkrE7mAGx4aNYkwIH9alM4PFlWW8ln38C9jYPBa1PcHNl
yaPz2PhlrCAA0MFhAs0RqYAQNivEyTWbBXyMLh4MLPM0WreGrDXxfwnezOwQoR/w
l3s17x8Z3zjsO3WpQlsCi+6fu6EExJNAYnxjYunhe3tUwM4AGJS0EuGCYmm6kqo=
=Vup3
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] Re: Moving from local svn to git

2013-02-01 Thread Konstantin Khomoutov
On Fri, 01 Feb 2013 11:54:39 +0100
Rainer M Krug r.m.k...@gmail.com wrote:

[...]
 I now did
 
 git svn clone
 file:///home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia
 
 and it worked (as I do not have a standard layout), but I get all
 files in the repo
 
 /home/rkrug/svn/Documents/
 
 and I would only like to have the ones in the directory and its
 subdirectories:
 
 /home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia/
 
 How can I now effectively split the svn repo in different git repos?

Using the split command of git-subtree [1] which is bundled with
recent versions of Git as a contributed script.

1. https://github.com/apenwarr/git-subtree

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] Re: Moving from local svn to git

2013-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/02/13 12:05, Konstantin Khomoutov wrote:
 On Fri, 01 Feb 2013 11:54:39 +0100 Rainer M Krug r.m.k...@gmail.com wrote:
 
 [...]
 I now did
 
 git svn clone 
 file:///home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia
 
 and it worked (as I do not have a standard layout), but I get all files in 
 the repo
 
 /home/rkrug/svn/Documents/
 
 and I would only like to have the ones in the directory and its 
 subdirectories:
 
 /home/rkrug/svn/Documents/Publications/2010/Paper/NonSpatialAcacia/
 
 How can I now effectively split the svn repo in different git repos?
 
 Using the split command of git-subtree [1] which is bundled with recent 
 versions of Git as a
 contributed script.

Thanks - looks great.

Thanks,

Rainer

 
 1. https://github.com/apenwarr/git-subtree
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRC8A0AAoJENvXNx4PUvmCM3IH/if58j27BOc/1xZcLoDH6Zfm
hQuDYnr2w6CZQCMDA3cyLAGy6j7Dj9Rqd2sVOOM+bHP3dZaj0PA7wqn8VmULLSno
UhA3wdpd2V2Xyr5nnACYPP5SCodqdmG4AEUytzXMJgX7Y9O7Ce8kOfofuY2/xUrA
xerl+44qY6BsavuMAFJAI9uoqdyW+bdB2yEH6ue1BOjrny3qFvj+eb0p5yHYCbB6
GVpMDNSpw8zaNm9HpY5QYZffe0ULhio1pY5vZxwEOfTiFDoLtQz7eIMPHIs7+2Ba
8wtD74iLR+BF6RqcfV9hMuhlZY9pjY8uR9WwlqZ2Bv6AWvMJ4Vxt5ulfh2bEWyE=
=f+MO
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.