summaryrefslogtreecommitdiff
path: root/builtin-revert.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-10-31 01:42:58 -0700
committerJunio C Hamano <gitster@pobox.com>2008-10-31 01:42:58 -0700
commit933bb3ae5e6c83288ec7c80c2282984f4927cb48 (patch)
treeddd8cba625475e53e370471f61ea0fcba2f64921 /builtin-revert.c
parent797484392a823c66bd846545a43d76aa2c64f5ff (diff)
parente855bfc0404d3344787541c1bdaa1e8d44398eb3 (diff)
downloadgit-933bb3ae5e6c83288ec7c80c2282984f4927cb48.tar.gz
Merge branch 'maint'
* maint: git-svn: change dashed git-commit-tree to git commit-tree Documentation: clarify information about 'ident' attribute bash completion: add doubledash to "git show" Use test-chmtime -v instead of perl in t5000 to get mtime of a file Add --verbose|-v to test-chmtime asciidoc: add minor workaround to add an empty line after code blocks Plug a memleak in builtin-revert Add file delete/create info when we overflow rename_limit Install git-cvsserver in $(bindir) Install git-shell in bindir, too
Diffstat (limited to 'builtin-revert.c')
-rw-r--r--builtin-revert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-revert.c b/builtin-revert.c
index 472554019a..7483a7a63b 100644
--- a/builtin-revert.c
+++ b/builtin-revert.c
@@ -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;
- const char *defmsg = xstrdup(git_path("MERGE_MSG"));
+ char *defmsg = xstrdup(git_path("MERGE_MSG"));
struct merge_options o;
struct tree *result, *next_tree, *base_tree, *head_tree;
static struct lock_file index_lock;
@@ -432,6 +432,7 @@ static int revert_or_cherry_pick(int argc, const char **argv)
return execv_git_cmd(args);
}
free(reencoded_message);
+ free(defmsg);
return 0;
}