project-navigation
Personal tools

Author Topic: Switch from svn to git without redownloading everything?  (Read 24584 times)

Offline Mattn

  • CaveExpress
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4830
  • www.caveproductions.org
    • View Profile
    • CaveExpress
Re: Switch from svn to git without redownloading everything?
« Reply #60 on: October 06, 2010, 09:48:32 am »
i've checked in a c::b project file that works with the makefiles in the background - just make sure your sdl-config is returning the correct path for sdl-config --cflags - in the c::b package we offer for download it points to dave's home dir - which will of course fail for everyone else. If you get a SDL_opengl.h not found error, this is due to the wrong path in sdl-config

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile

Offline O01eg

  • Rookie
  • ***
  • Posts: 73
    • View Profile
Re: Switch from svn to git without redownloading everything?
« Reply #62 on: October 07, 2010, 06:20:17 am »
use rsync:

Code: [Select]
rsync -av ufoai.git.sourceforge.net::gitroot/ufoai/* $DIR_TO_PLACE_THE_REPO_IN

rename the directory into .git and move it into ufoai/.git
edit ufoai/.git/config and change the bare boolean to false
go into ufoai and checkout your working copy

Code: [Select]
git remote set-url --push origin ssh://USER@ufoai.git.sourceforge.net/gitroot/ufoai/ufoai
git remote set-url origin git://ufoai.git.sourceforge.net/gitroot/ufoai/ufoai

i have to admit that i've never ever tested this - but it should work, as it is a repository clone, too.
but the advantage is, that rsync can get continued

Code: [Select]
receiving incremental file list
rsync: send_files failed to open "/ufoai/ufoai/objects/pack/pack-cc998cb5595939311e254e994c9f6edf4317a739.keep" (in gitroot): Permission denied (13)
Is it normal and I can exclude this file?
Also, after `git remote set-url origin git://ufoai.git.sourceforge.net/gitroot/ufoai/ufoai` I got "fatal: No such remote 'origin'"
« Last Edit: October 07, 2010, 06:22:45 am by O01eg »