Code

Backup the array passed to fetch_pack so we can free items
[git.git] / builtin-shortlog.c
index b57a88a6b0da36562bc2ce9d0d9e11b12ad990c3..16af6199ab2bc8a663d16f78a5d461a5bee05bc7 100644 (file)
@@ -283,8 +283,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
        if (argc > 1)
                die ("unrecognized argument: %s", argv[1]);
 
-       if (!access(".mailmap", R_OK))
-               read_mailmap(&mailmap, ".mailmap", &common_repo_prefix);
+       read_mailmap(&mailmap, ".mailmap", &common_repo_prefix);
 
        if (rev.pending.nr == 0) {
                if (isatty(0))
@@ -332,4 +331,3 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
 
        return 0;
 }
-