git-am --whitespace: do not lose the command line option
[gitweb.git] / builtin-revert.c
index 7483a7a63bf09a7a123e442e9b933b9d24f2b1a6..4038b4118da087069db82bfcf6e0dd298aec9036 100644 (file)
@@ -251,7 +251,7 @@ static int revert_or_cherry_pick(int argc, const char **argv)
        int i, index_fd, clean;
        char *oneline, *reencoded_message = NULL;
        const char *message, *encoding;
-       char *defmsg = xstrdup(git_path("MERGE_MSG"));
+       char *defmsg = git_pathdup("MERGE_MSG");
        struct merge_options o;
        struct tree *result, *next_tree, *base_tree, *head_tree;
        static struct lock_file index_lock;