Test git-patch-id
[gitweb.git] / builtin-symbolic-ref.c
index cafc4eba7cc0f8e2c89d49403b56bb746fe14545..6ae6bcc0e8d02d9af8a81a7d694c0bfd2c6c0514 100644 (file)
@@ -45,8 +45,8 @@ int cmd_symbolic_ref(int argc, const char **argv, const char *prefix)
                break;
        case 2:
                if (!strcmp(argv[0], "HEAD") &&
-                   prefixcmp(argv[1], "refs/heads/"))
-                       die("Refusing to point HEAD outside of refs/heads/");
+                   prefixcmp(argv[1], "refs/"))
+                       die("Refusing to point HEAD outside of refs/");
                create_symref(argv[0], argv[1], msg);
                break;
        default: