[git-users] Repository corruption ...
Hi all, recently I got a: remote: fatal: *object 534a44ef7703fdfe13e609b3e87e98bd52af60f8 is corrupted * error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to possible repository corruption on the remote side. remote: aborting due to possible repository corruption on the remote side. fatal: *early EOF* fatal: index-pack failed which later I found that the *read/write permissions* of the git database was wrong. How it went wrong? I do have a *pre-receive* hook that failed with an error and caused a *push*operation to abort. Note that the script does not perform any file operations or changes whatsever - it simply checks the current user and either exits true/false. Nevertheless there was a scripting error which it seems caused git to mangle the read/write permissions of some files. So I fixed it with: chmod -R ug+rwX repo ... and it worked again. Yes - I do suspect git of having a bug ... Hope this helps someone ... --
[git-users] Re: /opt/git folder
On Thursday, November 22, 2012 10:00:27 AM UTC+1, Ivan Ionut wrote: When git is installed a /opt/git folder is created? I'm asking because i was reading http://git-scm.com/book/en/Git-on-the-Server-Getting-Git-on-a-Server and i don't have /opt/git folder, should i make this folder? No, this directory is not installed during Git installation. It's just the place where you'll put Git repositories, so you can pick it yourself. It can be wise to follow any conventions from your operating system, or how your ops/team usually does it. As an example, we keep our git repositories in /var/git, cause that's adjacent to where we used to have the SVN repository installed (/var/svnroot). --
[git-users] Re: /opt/git folder
On 11/22/12 06:28, Konstantin Khomoutov wrote: So, to answer the original question, Git *might* be installed under /opt, when doing manual compilation, but this is somewhat odd due to a number of reasons--it's always better to first try installing Git from a ready-made binary package. Every sensible OS has Git packaged, and it's even available for Windows. So when one installing Git on the server, the first thing to try is to install it using the usual OS's means, like doing `apt-get install git` or `yum install git` or whatever applies. The big exception is when running on older boxes. I admin on older Debian box where 1.5.6.5 is the latest version in the repos, so building from source gets a LOT of good stuff in git (i.e., makes git usable :). That said, I agree that I'd put it in /usr/local/... rather than /opt -tkc --
Re: [git-users] Re: /opt/git folder
On Thu, 22 Nov 2012 07:42:59 -0600 Tim Chase g...@tim.thechases.com wrote: So, to answer the original question, Git *might* be installed under /opt, when doing manual compilation, but this is somewhat odd due to a number of reasons--it's always better to first try installing Git from a ready-made binary package. Every sensible OS has Git packaged, and it's even available for Windows. So when one installing Git on the server, the first thing to try is to install it using the usual OS's means, like doing `apt-get install git` or `yum install git` or whatever applies. The big exception is when running on older boxes. I admin on older Debian box where 1.5.6.5 is the latest version in the repos, so building from source gets a LOT of good stuff in git (i.e., makes git usable :). That said, I agree that I'd put it in /usr/local/... rather than /opt Same thing here, but installing Git from backports helped me so far. --
[git-users] quick git repo set up
Hi, I am a newbie with git. I have a linux server(centos 6.2) where i store code and host my website. 2 more guys work with me and we are learning very fast. We all work from windows machine using cygwin. I am wondering, how to quickly set-up a git repo on server and then be able to push and pull from our computers. This is what i did: *On Linux server: *in the folder /home/user1/ I did 1. git init(this created a .git folder in the current folder) 2. created HelloGit.c file and commited it to the repo *Now on Windows machine using cygwin,* I am tryin to pull this repo by trying these, none of which work 1. git clone user1@hostname:/home/user1/.git (This doesn't work) *Then* 2. I tried to create a bare repo and pull on this, so git init --bare and git clone user1@hostname:/home/user1/.git and still it doesn't work . Any help would be great. Thanks --