From 84a9b58c421f9b2d1cc6c195ed441fac48e60392 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 23 Mar 2006 23:41:18 -0800 Subject: 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 --- rev-parse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rev-parse.c') diff --git a/rev-parse.c b/rev-parse.c index f90e999e60..19a5ef7f48 100644 --- a/rev-parse.c +++ b/rev-parse.c @@ -166,6 +166,8 @@ int main(int argc, char **argv) unsigned char sha1[20]; const char *prefix = setup_git_directory(); + git_config(git_default_config); + for (i = 1; i < argc; i++) { struct stat st; char *arg = argv[i]; -- cgit v1.2.3