I'd like to upgrade the git installed on my webfaction account from 1.7.2 to the most recent. I think I upgraded git on my home computer, and I am now getting this error:
Do I need to recompile, or is there some way to more easily replace the binaries and whatnot. asked 20 May '11, 11:31 quasiyodel |
Are you looking to upgrade the version of Git inside a specific application or the "global" version for your account?
I am looking to change the version used by my git server, so whatever it takes, but probably just the copy inside an app.
That's a bit trickier. What you'll have to do is
Compile git into your application somewhere (say, ~/webapps/<app>/src/git-1.7.5.2).
Update your app's
git.cgi
andauth/git.cgi
to point the newgit-http-backend
binary.Sadly you can't compile pre-built binaries of git because it hardcodes the paths to other binaries. Moving them from their original build location causes segfaults :(
(This was a major reason for the decision to install Git globally on our servers.)
So I put the new version in, updated the paths, and I still got the same error as above. Any ideas? I am using git 1.7.5.2 on both the server my client. Do I need to somehow upgrade the repositories themselves?
It's possible. To test this, are you able to create a new empty repository on the server, clone it, and push to it over http? (Please ensure that you use the new git binary to create the new repository)