Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
receive-pack: allow using --strict mode for unpacking objects
[gitweb.git]
/
pretty.c
diff --git
a/pretty.c
b/pretty.c
index a5b2d8c6048c78e360b3526c247b9b272bb3ffc3..703f52176bf0b5cbf52cf1f77ba55ba6d87fac94 100644
(file)
--- a/
pretty.c
+++ b/
pretty.c
@@
-30,8
+30,7
@@
enum cmit_fmt get_commit_format(const char *arg)
if (*arg == '=')
arg++;
if (!prefixcmp(arg, "format:")) {
- if (user_format)
- free(user_format);
+ free(user_format);
user_format = xstrdup(arg + 7);
return CMIT_FMT_USERFORMAT;
}