tags:

views:

160

answers:

2

I want to change my repository from bazaar to git. I installed Git (winXP) and tortoise with no problem, I set path variables, etc...

I have initialized my repository with:

$ git init

copied it using

$ cd ..
$ git clone --bare project.git

uploaded it to FTP, and when trying to access:

$ git clone  *ftp_address*
Initialized empty Git repository in D:/project/.git/
Password:
error: Access denied: 530 while accessing *ftp_address*/info/refs
fatal: HTTP request failed

I checked and .../project.git/info/refs does not exists. What am I missing?

thanks

PD: *ftp_address* = 'ftp://user%[email protected]/git/project.git'

A: 

Git supports ssh and http protocols only.

Eimantas
Incorrect. See the `git-push` man page (http://www.kernel.org/pub/software/scm/git/docs/git-push.html). "Git natively supports ssh, git, http, https, ftp, ftps, and rsync protocols."
Jefromi
Maybe the problem is because my user has '@'? I tried both with '@' and '%40'
enboig
disregard my answer. back to rtfm ,)
Eimantas
+1  A: 

As mentioned in Git everyday, you need to make sure your info/refs and objects/info/packs are up-to-date.
Hence the git --bare update-server-info

Regarding the @ issue, the url is usually ftp://login:pass@serveur.
If you have an @ in the login, that makes for an extra (and incorrect) separator.

%40 should be the right way to include an @ in the login name.

You can try as an ftp address:

*ftp_address* = 'ftp://"user%40example.org"@ftp.example.org/git/project.git'

(or some other kind of quotes or double quotes definition to better isolate the username)

VonC