From: Alex Riesen Date: Tue, 8 Nov 2005 08:23:37 +0000 (+0100) Subject: ls-files and read-tree need core.filemode X-Git-Tag: v0.99.9f^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=39b4ac99686148d356f7ba3c0132eb55dfda4726;p=git.git ls-files and read-tree need core.filemode ls-files.c and read-tree.c miss the default configuration, in particular the filemode=false part. The recent +x bit flip made me notice that, because git-merge refused to merge anything saying that git-pull.sh is not up to date. Signed-off-by: Junio C Hamano --- diff --git a/ls-files.c b/ls-files.c index f7653e7d3..db2288aee 100644 --- a/ls-files.c +++ b/ls-files.c @@ -570,6 +570,7 @@ int main(int argc, const char **argv) prefix = setup_git_directory(); if (prefix) prefix_offset = strlen(prefix); + git_config(git_default_config); for (i = 1; i < argc; i++) { const char *arg = argv[i]; diff --git a/read-tree.c b/read-tree.c index 6a456ae61..df156ea0d 100644 --- a/read-tree.c +++ b/read-tree.c @@ -633,6 +633,8 @@ int main(int argc, char **argv) if (newfd < 0) die("unable to create new cachefile"); + git_config(git_default_config); + merge = 0; reset = 0; for (i = 1; i < argc; i++) {