Merge branch 'tb/config-core-filemode-check-on-broken-fs'
Some filesystems assign filemodes in a strange way, fooling then automatic "filemode trustability" check done during a new repository creation. * tb/config-core-filemode-check-on-broken-fs: init-db: improve the filemode trustability checkmaint
commit
168ab99d4c
|
@ -256,6 +256,8 @@ static int create_default_files(const char *template_path)
|
||||||
!lstat(path, &st2) &&
|
!lstat(path, &st2) &&
|
||||||
st1.st_mode != st2.st_mode &&
|
st1.st_mode != st2.st_mode &&
|
||||||
!chmod(path, st1.st_mode));
|
!chmod(path, st1.st_mode));
|
||||||
|
if (filemode && !reinit && (st1.st_mode & S_IXUSR))
|
||||||
|
filemode = 0;
|
||||||
}
|
}
|
||||||
git_config_set("core.filemode", filemode ? "true" : "false");
|
git_config_set("core.filemode", filemode ? "true" : "false");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue