templates/Makefile: install is unnecessary, just use mkdir -p
[gitweb.git] / builtin-merge.c
index a201c6628d6b2c736e53d69ef75accec7d73b4b6..7759a0b1e9a21148a69bbd1f2dc24902ba5651b5 100644 (file)
@@ -833,6 +833,11 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
                if (argc != 1)
                        die("Can merge only exactly one commit into "
                                "empty head");
+               if (squash)
+                       die("Squash commit into empty head not supported yet");
+               if (!allow_fast_forward)
+                       die("Non-fast-forward commit does not make sense into "
+                           "an empty head");
                remote_head = peel_to_type(argv[0], 0, NULL, OBJ_COMMIT);
                if (!remote_head)
                        die("%s - not something we can merge", argv[0]);