am: release strbuf on error return in hg_patch_to_mail()
[gitweb.git] / builtin / diff-index.c
index d59bf6cf5f8da394251532765f27a044c14a572d..9d772f8f27fe722921c00ea57af1087f988856da 100644 (file)
@@ -1,4 +1,5 @@
 #include "cache.h"
+#include "config.h"
 #include "diff.h"
 #include "commit.h"
 #include "revision.h"
@@ -22,7 +23,6 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix)
 
        git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
        init_revisions(&rev, prefix);
-       gitmodules_config();
        rev.abbrev = 0;
        precompose_argv(argc, argv);