estoy usando git versión 1.5.6.3, y parece git no se da cuenta el modo de una carpeta cambia¿Cómo maneja git el permiso de carpeta?
#create a test repository with a folder with 777 mode
:~$ mkdir -p test/folder
:~$ touch test/folder/dummy.txt
:~$ cd test
:~/test$ chmod 777 folder/
#init git repository
:~/test$ git init
Initialized empty Git repository in ~/test/.git/
:~/test$ git add .
:~/test$ git commit -m 'commit a directory'
Created initial commit 9b6b21a: commit a directory
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 folder/dummy.txt
#change folder permission to 744
:~/test$ chmod 744 folder/
:~/test$ git status
# On branch master
nothing to commit (working directory clean)
¿Qué significa para 04000
?
:~/test$ git ls-tree HEAD folder
040000 tree 726c1d5f0155771348ea2daee6239791f1cd7731 folder
¿Es este comportamiento normal?
¿Cómo puedo rastrear los cambios en el modo de carpeta?
Relacionados: http://stackoverflow.com/questions/737673/how-to-read-the-mode-field-of-git-ls-trees-output –