path: root/builtin-update-ref.c
diff options
authorJunio C Hamano <>2007-07-29 00:20:52 (GMT)
committerJunio C Hamano <>2007-07-30 06:28:55 (GMT)
commit283884422f35594db9eab491d3f8c91e49f9d62f (patch)
treed3f171312463d6daa80d4e27e5bc9bd5e6811455 /builtin-update-ref.c
parent0ec29a4760e7c1dd1e168f6dbdd22b87559a26e9 (diff)
symbolic-ref, update-ref: do not refuse reflog message with LF
Earlier these tools refused to create a reflog entry when the message given by the calling Porcelain had a LF in it, partially to keep the file format integrity of reflog file, which is one-entry-per-line. These tools should not be dictating such a policy. Instead, let the codepath to write out the reflog entry worry about the format integrity and allow messages with LF in them. Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin-update-ref.c')
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin-update-ref.c b/builtin-update-ref.c
index feac2ed..8339cf1 100644
--- a/builtin-update-ref.c
+++ b/builtin-update-ref.c
@@ -23,8 +23,6 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
msg = argv[++i];
if (!*msg)
die("Refusing to perform update with empty message.");
- if (strchr(msg, '\n'))
- die("Refusing to perform update with \\n in message.");
if (!strcmp("-d", argv[i])) {