Re: How can I force git to recognize a change change in file modes?
- From
Jan Krüger <jk@jk.gs>
- Date
- Feb 28, 2009, 03:55 UTC
- Message-ID
- <20090228045531.14399ebf@perceptron>
- In-Reply-To
- <e38bce640902271717s46cf47f9i7c6bf5aac0d5f273@mail.gmail.com>
Hi,
Show 6 quoted lines
> I checked in a slew of scripts, only to realize that the file > permissions were too open (I want them to be chmod 700, not chmod > 755). Somehow I thought that git was tracking those permission bits, > but simply using "chmod 700 <fileset>; git add <fileset>" did not add > the change of file modes, well, at least git status output doesn't > show it. Is there a way to do this?
git doesn't track permissions quite that closely; all it remembers is whether the file should be executable or not.
-Jan