Re: reviving a git-svn clone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



also sprach Deskin Miller <deskinm@xxxxxxxxx> [2009.04.21.1109 +0200]:
> If you have access to the svn remote, you should be able to avoid
> hacking config and .metadata entirely by entering
> 
> $ git svn init --stdlayout --prefix=upstream/
> svn+ssh://svn.suspend2.net/svn/hibernate-script

This worked nicely, so thanks to you, Sam, and Thomas Rast (who
helped on IRC). Here is what I ended up doing:

alioth:~|master|% git clone /git/collab-maint/hibernate.git hibernate-svnsync
Initialized empty Git repository in /srv/alioth.debian.org/chroot/home/users/madduck/hibernate-svnsync/.git/
alioth:~|master|% cd hibernate-svnsync 
total 204
drwx------ 2  4096 20090421.1013 admin
drwx------ 3  4096 20090421.1013 debian
drwx------ 2  4096 20090421.1013 init.d
drwx------ 2  4096 20090421.1013 scriptlets.d
-rw------- 1 21417 20090421.1013 CHANGELOG
-rw------- 1 17992 20090421.1013 COPYING
-rw------- 1  6902 20090421.1013 README
-rw------- 1  1470 20090421.1013 README.xfs
-rw------- 1  6891 20090421.1013 SCRIPTLET-API
-rw------- 1  2020 20090421.1013 blacklisted-modules
-rw------- 1  4004 20090421.1013 common.conf
-rw------- 1   310 20090421.1013 disk.conf
-rw------- 1  7047 20090421.1013 gen-manpages.sh
-rw------- 1   518 20090421.1013 hibernate.conf
-rw------- 1 26637 20090421.1013 hibernate.sh
-rw------- 1  4165 20090421.1013 hibernate.spec
-rw------- 1 13822 20090421.1013 hibernate.vim
-rwx------ 1  4664 20090421.1013 install.sh
-rw------- 1    79 20090421.1013 logrotate.d-hibernate-script
-rwx------ 1   608 20090421.1013 mktarball.sh
-rw------- 1   837 20090421.1013 ram.conf
-rw------- 1  1288 20090421.1013 suspend2.conf
-rw------- 1   345 20090421.1013 sysfs-disk.conf
-rw------- 1   289 20090421.1013 sysfs-ram.conf
-rw------- 1     8 20090421.1013 tuxonice-binary-signature.bin
-rw------- 1   509 20090421.1013 ususpend-both.conf
-rw------- 1   501 20090421.1013 ususpend-disk.conf
-rw------- 1  1324 20090421.1013 ususpend-ram.conf
alioth:~/hibernate-svnsync|master|% git svn init --stdlayout --prefix=upstream/ svn+ssh://svn.suspend2.net/svn/hibernate-script                                                                                   alioth:~/hibernate-svnsync|master|% git update-ref refs/remotes/upstream/trunk refs/remotes/origin/upstream
alioth:~/hibernate-svnsync|master|% git show-ref refs/remotes/upstream/trunk refs/remotes/origin/upstream
1784ac6d733527ea65c2e9515df30c7a77d8f90b refs/remotes/origin/upstream
1784ac6d733527ea65c2e9515df30c7a77d8f90b refs/remotes/upstream/trunk
alioth:~/hibernate-svnsync|master|% git checkout -b upstream upstream/trunk
Switched to a new branch "upstream"
alioth:..bernate-svnsync|upstream|% git svn info
Rebuilding .git/svn/upstream/trunk/.rev_map.c12ee44c-9ede-0310-94ea-d4716f4f7118 ...
r840 = 56b969c867a8480521c25e7f943634a865d4ac33
[…]
r1195 = 1784ac6d733527ea65c2e9515df30c7a77d8f90b
Done rebuilding .git/svn/upstream/trunk/.rev_map.c12ee44c-9ede-0310-94ea-d4716f4f7118
Use of uninitialized value within @_ in localtime at /usr/bin/git-svn line 4277.
No such file or directory at /usr/bin/git-svn line 897.



Now I can turn to changing the URL, since upstream wants to drop
svn.suspend2.net in favour of svn.tuxonice.net. This does not seem
to be as straight-forward as it should be. I hate SVN!

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
god is real, unless declared integer.
                                          (dedicated to gabriel gómez)
 
spamtraps: madduck.bogus@xxxxxxxxxxx

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]