Merge branch 'mt/do-not-use-scld-in-working-tree'

"git apply" adjusted the permission bits of working-tree files and
directories according core.sharedRepository setting by mistake and
for a long time, which has been corrected.

* mt/do-not-use-scld-in-working-tree:
  apply: don't use core.sharedRepository to create working tree files
This commit is contained in:
Junio C Hamano
2020-12-08 15:11:19 -08:00
5 changed files with 47 additions and 6 deletions

View File

@ -367,9 +367,9 @@ test_chmod () {
git update-index --add "--chmod=$@"
}
# Get the modebits from a file.
# Get the modebits from a file or directory.
test_modebits () {
ls -l "$1" | sed -e 's|^\(..........\).*|\1|'
ls -ld "$1" | sed -e 's|^\(..........\).*|\1|'
}
# Unset a configuration variable, but don't fail if it doesn't exist.