WebFaction
Community site: login faq

I've setup my Git repository and have added initial files to it. What's the best practice for exposing the repository so I can clone it on to my computer and what is the proper URL format.

The site is setup to use SSL and I can acccess it from the web. The URL looks like https://myproject.webfactional.com/git/?p=myproject.git

When I try to point my computer to that URL i get the following error:

error: Couldn't resolve host 'myproject.webfactional.com' while accessing https://myproject.webfactional.com/git/?p=myproject.git/info/refs
fatal: HTTP request failed

And, yes, myproject is not the actual name.

What is the proper URL format to clone my repository?

asked 09 May '11, 21:43

Rupe
411814
accept rate: 0%


Our docs on git are here, they cover how to fix that error and enable HTTP,

http://docs.webfaction.com/software/git.html
http://docs.webfaction.com/software/git.html#using-https

But IMO http and https are a pain and I recommend git+svn.

permanent link

answered 09 May '11, 22:02

johns
5.4k412
accept rate: 23%

Dude, I must have been tired last night. I didn't even pay attention to what you posted because I thought I had read that entire page. I had stopped just short. Thanks ;o)

(10 May '11, 19:05) Rupe

The correct URL would not be "https://myproject.webfactional.com/git/?p=myproject.git", but instead, would be:

https://myproject.webfactional.com/myproject.git

Of course, you would replace "myproject.webfactional.com" with the URL that you have mounted the git application to with a website record. In this respect, git acts exactly like any other webfaction application.

So, in a nutshell:

  1. Mount your "git" application to a website record on a domain. In this example, that domain is "myproject.webfactional.com". Use a URL Path of "/".
  2. Access your "myproject" repository at: https://myproject.webfactional.com/myproject.git
permanent link

answered 09 May '11, 22:09

ryans ♦♦
5.0k103560
accept rate: 43%

Would it change your answer at all if I told you that I associated the Git application with the /git path in the website? there is nothing associated to the root of myproject.webfactional.com.

I've tried both https://myproject.webfactional.com/myproject.git and http://myproject.webfactional.com/git/myproject.git and neither work. Both give me the same error:

error: SSL: certificate subject name (*.webfaction.com) does not match target host name 'myproject.webfactional.com'
(10 May '11, 19:00) Rupe

Never mind, @johns had it right. That was my problem. I realized he was right when I wrote the error message the second time here to you. I'm a little slow some times. Thanks for taking the time.

(10 May '11, 19:07) Rupe

Yes; if you used the /git URL path, then this is the correct URL:

https://myproject.webfactional.com/git/myproject.git

The error you are getting does not indicate a broken URL. The error is that the certificate is invalid. This is expected, because you are using WebFaction's freely-provided SSL certificate. This provides full encryption, it just can't be verified as associated with your domain name (because it isn't).

In order to resolve this issue, just use the GIT_SSL_NO_VERIFY=true variable as described here:

http://docs.webfaction.com/software/git.html#using-https
(10 May '11, 19:14) ryans ♦♦

cool thanks for the tip

(13 May '11, 19:55) Rupe
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×111

question asked: 09 May '11, 21:43

question was seen: 12,837 times

last updated: 13 May '11, 19:55

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM