diff: have the diff-* builtins configure diff before initializing revisions
[gitweb.git] / builtin / diff-tree.c
index 326f88b6576d6c02e9a0bcecb5a0b402bb257372..36a3a19761583333212472fa22afde3cb12e1ad7 100644 (file)
@@ -105,9 +105,9 @@ int cmd_diff_tree(int argc, const char **argv, const char *prefix)
        struct setup_revision_opt s_r_opt;
        int read_stdin = 0;
 
+       git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
        init_revisions(opt, prefix);
        gitmodules_config();
-       git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
        opt->abbrev = 0;
        opt->diff = 1;
        opt->disable_stdin = 1;