Re: Can I switch a git-svn clone from a file => http url?

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

 



Stephen Bannasch kirjoitti:

> I've just created a git-svn clone from a svn repo accessed locally
> with a file:/// path.
>
> Unfortunately the local svn repo is just a copy of the main svn repo
> normally accessed with http or https (served through Apache). I was
> having problems cloning the main svn repository (more details below)
> so I archived the remote svn repository and copied it to my local
> hard drive.

I know two options:

1. Keep your current Git repo but set the url and rewriteroot options 
in .git/config:

[svn-remote "svn"]
	url = http://...
	rewriteroot = file:///...

Your commit messages will still have git-svn-id pointing at file:///... 
url but it should work fine.


2. Convert your repo again:

$ mkdir repo ; cd repo
$ git svn init --rewrite-root=http://... file:///...
$ git svn fetch

This way you'll create new Git repo from file:///... url but commit 
messages will have git-svn-id's url pointing at http://... . After that 
set the correct remote url to .git/config:

[svn-remote "svn"]
	url = http://...
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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]

  Powered by Linux