diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-07-28 17:20:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-29 23:28:55 -0700 |
commit | 283884422f35594db9eab491d3f8c91e49f9d62f (patch) | |
tree | d3f171312463d6daa80d4e27e5bc9bd5e6811455 /builtin-symbolic-ref.c | |
parent | log_ref_write() -- do not chomp reflog message at the first LF (diff) | |
download | tgif-283884422f35594db9eab491d3f8c91e49f9d62f.tar.xz |
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 <gitster@pobox.com>
Diffstat (limited to 'builtin-symbolic-ref.c')
-rw-r--r-- | builtin-symbolic-ref.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin-symbolic-ref.c b/builtin-symbolic-ref.c index d41b40640b..9eb95e50da 100644 --- a/builtin-symbolic-ref.c +++ b/builtin-symbolic-ref.c @@ -43,8 +43,6 @@ int cmd_symbolic_ref(int argc, const char **argv, const char *prefix) msg = argv[1]; if (!*msg) die("Refusing to perform update with empty message"); - if (strchr(msg, '\n')) - die("Refusing to perform update with \\n in message"); } else if (!strcmp("--", arg)) { argc--; |