Re: git repo corruption

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Neal Kreitzinger
Date: Tuesday, January 4, 2011 - 2:42 pm

On 1/4/2011 3:10 AM, Levend Sayar wrote:

I assume the correct permissions for your tracked files should be 2750? 
  If so, then here's what I would do:

1.  First make a copy of your repo and test these steps on the copy:

e.g.  bare repo:  cp -rvp repo.git repocopy.git
non-bare-repo:  cp -rvp worktree worktreecopy

2. Then cd to the parent of the objects dir in you git repo:

e.g.  bare repo:  cd repocopy.git
non-bare repo:  cd worktreecopy/.git

3.  Then change the permissions of your objects dir:

chmod -R 2750 objects

4.  Validate the results.  Your permissions should match again.

5.  If it worked, then do it on the real repo.


v/r,
Neal
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git repo corruption, Levend Sayar, (Tue Jan 4, 2:10 am)
Re: git repo corruption, Drew Northup, (Tue Jan 4, 5:34 am)
Re: git repo corruption, Neal Kreitzinger, (Tue Jan 4, 2:42 pm)