слетают права на измененных файлах при git pull, добавляю что-нибудь в файл read.me
ls -la
total 5.8M
drwxrwxr-x 5 root root 4.0K Apr 25 14:31 .
drwxr-xr-x 3 root root 4.0K Apr 25 13:42 ..
drwxrwxr-x 2 root root 4.0K Apr 25 13:42 css
drwxrwxr-x 8 root root 4.0K Apr 25 14:32 .git
-rw-rwxr-- 1 root root 5.8M Apr 25 14:23 index.php
drwxrwxr-x 2 root root 4.0K Apr 25 13:42 js
-rw-rwxr-- 1 root root 7 Apr 25 14:31 read.me
# git add .
# git commit -m "test commit"
[master 551b471] test commit
1 file changed, 1 insertion(+)
# git push -u origin master
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 256 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To git@server:website/repo.git
bb88999..551b471 master -> master
Branch master set up to track remote branch master from origin.
делаю на сервер git pull
$ ls -la
total 5.9M
drwxrwxr-x+ 5 user user 4.0K Apr 25 14:22 .
drwxr-x--x 9 user user 4.0K Apr 16 17:23 ..
drwxrwxr-x+ 8 user user 4.0K Apr 25 14:31 .git
drwxrwxr-x+ 2 user user 4.0K Apr 25 11:14 css
-rw-rwxr-x+ 1 user user 5.8M Apr 25 14:21 index.php
drwxrwxr-x+ 2 user user 4.0K Apr 25 11:14 js
-rw-rwxr--+ 1 user user 0 Apr 23 16:48 read.me
$ git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 1), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From server:website/repo
bb88999..551b471 master -> origin/master
Updating bb88999..551b471
Fast-forward
read.me | 1 +
1 file changed, 1 insertion(+)
$ ls -la
total 5.9M
drwxrwxr-x+ 5 user user 4.0K Apr 25 14:32 .
drwxr-x--x 9 user user 4.0K Apr 16 17:23 ..
drwxrwxr-x+ 8 user user 4.0K Apr 25 14:32 .git
drwxrwxr-x+ 2 user user 4.0K Apr 25 11:14 css
-rw-rwxr-x+ 1 user user 5.8M Apr 25 14:21 index.php
drwxrwxr-x+ 2 user user 4.0K Apr 25 11:14 js
-rw-rw----+ 1 user user 7 Apr 25 14:32 read.me
пользователь root
umask
0022
пользователь user
umask
0002
везде стоит - core.filemode=false
из-за чего еще могу слетать права при git pull?