apply: do not read from the filesystem under --index
[gitweb.git] / builtin / symbolic-ref.c
index f48195942123692c95ad8e5585f853ad54a3dbe4..71286b4fae4792dce73ab1533204e803e2a61334 100644 (file)
@@ -47,7 +47,7 @@ int cmd_symbolic_ref(int argc, const char **argv, const char *prefix)
        git_config(git_default_config, NULL);
        argc = parse_options(argc, argv, prefix, options,
                             git_symbolic_ref_usage, 0);
-       if (msg &&!*msg)
+       if (msg && !*msg)
                die("Refusing to perform update with empty message");
 
        if (delete) {