3

Is there a way I can allow others to clone source via http from a public repo I'm hosting without requiring a password?

It currently prompts for a password which fails if I try to do http://username:password@<repolocation>.git, so people are having to set up SSH keys just to clone the source.

Is there a better way to do this? I'm fairly new to git & gitlab so I'm not really sure where to look.

Thanks in advance.

user1231232141214124
  • 1,339
  • 3
  • 16
  • 22

2 Answers2

3

Since GitLab 6.2, it should be possible; since you can define a project as "public", like those GitLab public project.

That was recently completed (October 2013) in this feedback request.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I've set my project as Public in the settings, yet it's still requiring a password. I'm stumped as to why. I know that I've personally cloned from other projects without a password, not sure why it's not working here. – user1231232141214124 Nov 22 '13 at 21:43
  • @redFIVE are you using an http or https url? And are you keeping a '`username`' in the `https://username@/repo.git` url? Because if you do, that would compel `curl` (used by `git clone`) to ask for a password. – VonC Nov 22 '13 at 23:04
  • 1
    I'm using http. Without username@server it just asks for the default git@ password, which doesn't work. Same if I do use username@server, it prompts for password – user1231232141214124 Nov 22 '13 at 23:23
  • Note that the public repos from gitlab are all using https url, as in `git clone https://gitlab.com/adambrenecki/test-project.git`. Could you use a similar schema for your public repo url? – VonC Nov 22 '13 at 23:26
  • I'm using the url gitlab provided for http. If I try https I get a `SSL certificate problem: self signed certificate` error. @vonC im able to check out your's just fine – user1231232141214124 Nov 22 '13 at 23:29
1

This was puzzling to me. I had to set two settings: the Project visibility (Public) and the Repository access (changed to "Everyone with access").

(other answer here)

Community
  • 1
  • 1
Ehvince
  • 17,274
  • 7
  • 58
  • 79