Teach 'git apply' to look at $HOME/.gitconfig even outside of a repository
authorJunio C Hamano <junkio@cox.net>
Sun, 18 Feb 2007 02:12:46 +0000 (18:12 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 18 Feb 2007 08:54:04 +0000 (00:54 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-apply.c

index fc1d6730d9af0495fe6162c07a545da08aeb0be2..2784db2efb5030c819f41b6c880f53e8876ec023 100644 (file)
@@ -2601,11 +2601,9 @@ int cmd_apply(int argc, const char **argv, const char *unused_prefix)
 
        prefix = setup_git_directory_gently(&is_not_gitdir);
        prefix_length = prefix ? strlen(prefix) : 0;
-       if (!is_not_gitdir) {
-               git_config(git_apply_config);
-               if (apply_default_whitespace)
-                       parse_whitespace_option(apply_default_whitespace);
-       }
+       git_config(git_apply_config);
+       if (apply_default_whitespace)
+               parse_whitespace_option(apply_default_whitespace);
 
        for (i = 1; i < argc; i++) {
                const char *arg = argv[i];