aboutsummaryrefslogtreecommitdiff
path: root/read-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-23 23:41:18 -0800
committerJunio C Hamano <junkio@cox.net>2006-03-23 23:41:18 -0800
commit84a9b58c421f9b2d1cc6c195ed441fac48e60392 (patch)
treeb3862a8325f87bd5cf4948117da1b0269664ca13 /read-tree.c
parentc51d13692d4e451c755dd7da3521c5db395df192 (diff)
downloadgit-84a9b58c421f9b2d1cc6c195ed441fac48e60392.tar.gz
git-84a9b58c421f9b2d1cc6c195ed441fac48e60392.tar.xz
sha1_name: warning ambiguous refs.
This makes sure that many commands that take refs on the command line to honor core.warnambiguousrefs configuration. Earlier, the commands affected by this patch did not read the configuration file. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'read-tree.c')
-rw-r--r--read-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/read-tree.c b/read-tree.c
index 1c3b09bef..eaff44419 100644
--- a/read-tree.c
+++ b/read-tree.c
@@ -717,6 +717,7 @@ int main(int argc, char **argv)
merge_fn_t fn = NULL;
setup_git_directory();
+ git_config(git_default_config);
newfd = hold_index_file_for_update(&cache_file, get_index_file());
if (newfd < 0)