X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=builtin-update-ref.c;h=8339cf19e2b68a19e88c1a014c52672bc6f0c7b5;hb=7f55cf451c9e7c35cad2efcd0bb7bbd7c7ae29ac;hp=feac2ed12d22dcd23db5823cd32a0f9f1c1c974a;hpb=237ce836e770e8ead12a14ee4a8170009fa4a40b;p=git.git diff --git a/builtin-update-ref.c b/builtin-update-ref.c index feac2ed12..8339cf19e 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."); continue; } if (!strcmp("-d", argv[i])) {