git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Justin Collum <jcollum@gmail.com>,
	"Kyle J. McKay" <mackyle@gmail.com>,
	Stefan Beller <stefanbeller@googlemail.com>,
	Andrew Ruder <andy@aeruder.net>, Git List <git@vger.kernel.org>
Subject: Re: git status resets permissions on index file -- Ubuntu 12.04 64b
Date: Fri, 09 Aug 2013 14:58:20 +0200	[thread overview]
Message-ID: <vpqa9krja1f.fsf@anie.imag.fr> (raw)
In-Reply-To: <8761vf3uml.fsf@igel.home> (Andreas Schwab's message of "Fri, 09 Aug 2013 14:40:18 +0200")

Andreas Schwab <schwab@linux-m68k.org> writes:

> Justin Collum <jcollum@gmail.com> writes:
>
>>      sudo chmod 644 ./.git/index
>
> That doesn't make sense.  If you are the owner of the file, why do you
> need sudo???

I suspect that some over-use of "sudo" resulted in files or directories
belonging to root. What does

  find . -user 0

say?

(As a developer, you should never need sudo. You should only need in as
an administrator of your machine.)

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

  reply	other threads:[~2013-08-09 12:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-08 20:27 git status resets permissions on index file -- Ubuntu 12.04 64b Justin Collum
2013-08-08 21:35 ` Stefan Beller
2013-08-08 22:18   ` Andrew Ruder
2013-08-08 22:33     ` Justin Collum
2013-08-08 23:00       ` Andrew Ruder
2013-08-08 22:37     ` Kyle J. McKay
2013-08-08 23:58       ` Justin Collum
2013-08-09 12:40         ` Andreas Schwab
2013-08-09 12:58           ` Matthieu Moy [this message]
2013-08-09 17:00           ` Justin Collum
2013-08-09 19:29             ` Justin Collum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vpqa9krja1f.fsf@anie.imag.fr \
    --to=matthieu.moy@grenoble-inp.fr \
    --cc=andy@aeruder.net \
    --cc=git@vger.kernel.org \
    --cc=jcollum@gmail.com \
    --cc=mackyle@gmail.com \
    --cc=schwab@linux-m68k.org \
    --cc=stefanbeller@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).