Thread (13 messages) flat view 13 messages, 3 authors, 2016-06-15

Re: Git changes permissions on directories when deleting files.

From: Chad Joan <hidden>
Date: 2016-06-15 22:50:41

More info:

$ mkdir foo
$ mkdir foo/bar
$ echo "test" > foo/bar/baz.txt
$ echo "somestuff" > foo/bar/somefile.txt
$ git add foo/bar/*
$ ls -dl foo
drwxr-x--x 1 cjoan cjoan 0 Mar  1 10:46 foo
$ ls -dl foo/bar
drwxr-x--x 1 cjoan cjoan 0 Mar  1 10:46 foo/bar
$ git rm -f foo/bar/somefile.txt
rm 'foo/bar/somefile.txt'
$ ls -dl foo
drwxr-x--x 1 cjoan cjoan 0 Mar  1 10:46 foo
$ ls -dl foo/bar
drw------- 1 cjoan cjoan 0 Mar  1 10:47 foo/bar
$ git rm -f foo/bar/baz.txt
rm 'foo/bar/baz.txt'
fatal: git rm: 'foo/bar/baz.txt': Permission denied



This time I tried it with git 1.7.4.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help