Skip to contentSkip to conversation

git remote repo using http

DISCUSSION chris 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

chris

author
#0 lore raw

Hello,

I have been trying this for about 1 day, with no luck so far.
I have a git repo on a server that is hosting our company's website (the hosting company name is LunarPages, and the server is Bazaar i believe). Thing is when i try the following command from my local machine this is what i get:
-----------[code]-----------

$ git clone http://website.com/public_fpt/repos/proj.git
Cloning into proj ...
fatal: http://website.com/public_ftp/repos/proj.git/info/refs not found: did you run the git update-server-info on the server?
-----------[/code]--------------

Because of this, i tried starting all over again, and i even ran the command:
-----------[code]---------------
Chris@anora-1271823183291 z/public_ftp/repos/proj.git

$ git update-server-info
-----------[/code]---------------

before trying to clone, and i still have this problem. I have searched online, I even found this tutorial:
http://blog.wekeroad.com/2009/11/23/deploying-a-web-application-with-git-and-ftp
but i still get the same error message. At this point I'm out of ideas. Is there anything else I need to try?

Thanks.

#1 lore raw

-----------[code]-----------
$ git clone http://website.com/public_fpt/repos/proj.git
Cloning into proj ...
fatal: http://website.com/public_ftp/repos/proj.git/info/refs not found:
did you run the git update-server-info on the server? -----------[/code]--------------

This is a sign that you are using the dumb http protocol instead of the new smart one. You do NOT need to run update-server-info. You *are* trying to use the smart protocol (which typically requires web server reconfiguration), right?

First, make sure you are running a modern version of git. 1.7.4.1 recommended but the smart backend was introduced in 1.6.6

Then check out the web server logs for clues or otherwise strace to make sure the directory you think it should be using is actually the directory it is using is good--often times the web server translation is a bit subtle..

Rerun:

GIT_TRACE=2 GIT_CURL_VERBOSE=1 git clone http://website.com/public_fpt/repos/proj.git

I'll assume fpt is not a misspelled ftp here.

When you ls the git directory on the server, do you see the config and info and objects directory, or do you see something else?

-Seth Robertson