Welcome Guest | Login

Folks,

I am attempting to host a private remote git repository on my shared account at the HostingRails Bunyan server. I have been able to set up both a local Git repository on my (Windows XT) workstation and a skeletal remote repository on Bunyan, but I get an error while attempting to push the contents of my local repository to the remote repository on Bunyan.

I was following the scenario described in
this post at Rubynaut.net
but the command:
$ git push remote_test_project
fails, outputting the message:
fatal: protocol error: bad line length character

There are a number of posts about this on the net, all with the hypothesis that an internal error message is being written to stdout and thus corrupting the processing. Proposed causes:
- inetd path does not support git daemonhttp://n2.nabble.com/inted-problems-when-upgrading-to-1.6.0.4-td1575651.html

- user account .bashrc does not provide path to all Git componentshttp://discuss.joyent.com/viewtopic.php?id=22585

- The server allows only a single ssh connection per userhttp://www.bramschoenmakers.nl/en/node/303

Anyhow, I have learned a lot more about git/ssh/unix that I wanted to at this point, and I still don't know enough to figure out the problem. Anybody out there know anything?

[Revised] Note: In his response below, William states that HostingRails DOES support Git. (It has been installed on Bunyan.) My reading of everything_else_thread/1008 led me to believe the contrary.

[Revised] Note 2: The link markup code described in the markup code post lacks the equal sign mentioned by William. The example should read:
...url=http...

2008-11-26 01:58 PM

Hi Edwinmeyer, first of all you were missing the = character in the markup which prevented the links from showing up (I have edited your post to put them in)

Also, where have I stated that HostingRails does not support Git?  I'd like to make sure to edit that out as we have it supported everywhere now.

Finally, with regard to the actual question, give the "setting up git" section here a careful read to see where your setup process may have been different (i.e. there shouldn't be an internal error present).  You are allowed more than one ssh connection per user, so possibly you need to edit your .bashrc and put /usr/local/libexec/git-core in the PATH or ask support to get it in the system path if it isn't already.  

2008-11-26 05:43 PM

Thanks for your prompt response, William.

See my revised notes above regarding
1)the forum post which led me to believe that HostingRails did not support git, and
2) the [url=...] markup

3) The setting up git link you provide describes how to set up a local git repository on a shared server with a non-Git secure copy of the source from a workstation.
What I am attempting to do is quite different: to set up a remote git repository on my Bunyan account, and to be able to use git itself on my workstation to push my workstation-local git repository to the remote git repository on Bunyan.

4) With regard to adding /usr/local/libexec/git-core to my PATH statement in .bashrc, I can't find this directory on Bunyan.

Please advise.

2008-11-27 03:23 PM

Hi there - actually, the setting up git link describes how to push your local git repository to the remote git repository on your server so that it will work correctly with capistrano to pull from that repository upon checkout.  Regardless, all the git binaries are located in /usr/local/bin on your server - git-core (not one of them) is is just the name of the package, right? (or am I missing something?).  

Also, thanks for the heads up about those posts that are now edited.  

2008-11-27 05:21 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!