Re: preserve permissions?
- From
- snk <shank76@gmail.com>
- Date
- Mar 3, 2012, 19:05 UTC
- Message-ID
- <1330801530552-7340464.post@n2.nabble.com>
- In-Reply-To
- <m3fx27g6i8.fsf@localhost.localdomain>
> Therefore git does not store ownership, and only basic permissions > (only executable bit for ordinary files, and the symlink bit).
Fine. "git diff" reports wrong new permissions though: 755 instead of 764.
shanker@linux-0tix:~/test/play2> git reset --hard HEAD HEAD is now at 85d4483 test shanker@linux-0tix:~/test/play2> git config core.filemode true shanker@linux-0tix:~/test/play2> ls -l x -rw-rw-r-- 1 shanker users 0 Mar 3 11:00 x shanker@linux-0tix:~/test/play2> chmod u+x x shanker@linux-0tix:~/test/play2> git diff x
diff --git a/x b/x old mode 100644 new mode 100755 shanker@linux-0tix:~/test/play2> ls -l x -rwxrw-r-- 1 shanker users 0 Mar 3 11:00 x shanker@linux-0tix:~/test/play2> -- View this message in context: http://git.661346.n2.nabble.com/preserve-permissions-tp5003065p7340464.html Sent from the git mailing list archive at Nabble.com.