X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-symbolic-ref.c;h=9eb95e50da5656bc66e9db4d8cd23ef327a5ca8e;hb=e340d7d3fa1c5b9a6e7af2e3ee3d526064e56bea;hp=d41b40640b96e7d5568174c7d16088c29d361d42;hpb=b8336519450fdedc8f9cafebc73f7a0226e34e1f;p=git.git diff --git a/builtin-symbolic-ref.c b/builtin-symbolic-ref.c index d41b40640..9eb95e50d 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--;