git: use run_command() to execute dashed externals
[gitweb.git] / builtin-commit.c
index e88b78f8114e48c542a52bdc42b9c573a7e94cad..977ea09c51269e897ea09ceb4060661a0278e515 100644 (file)
@@ -624,7 +624,6 @@ static int prepare_to_commit(const char *index_file, const char *prefix)
        if (!commitable && !in_merge && !allow_empty &&
            !(amend && is_a_merge(head_sha1))) {
                run_status(stdout, index_file, prefix, 0);
-               unlink(commit_editmsg);
                return 0;
        }