Rename git-remote-testgit to git-remote-testpy
[gitweb.git] / builtin / fast-export.c
index 12220ad8dac65acaa556c6524310d5540709f324..9b70ec1fcffacadccedcd6533ca44e68fefd9cf4 100644 (file)
@@ -614,6 +614,10 @@ static void import_marks(char *input_file)
                if (object->flags & SHOWN)
                        error("Object %s already has a mark", sha1_to_hex(sha1));
 
+               if (object->type != OBJ_COMMIT)
+                       /* only commits */
+                       continue;
+
                mark_object(object, mark);
                if (last_idnum < mark)
                        last_idnum = mark;