Merge branch 'uk/merge-subtree-doc-update' into maint
[gitweb.git] / fsck.c
diff --git a/fsck.c b/fsck.c
index 0f56977d6aa6499c06e31eddb8ed4afe484fcdc4..d44c46c5275b137880b0d02da51024553feefe1b 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -485,7 +485,7 @@ static int fsck_walk_commit(struct commit *commit, void *data, struct fsck_optio
                if (name) {
                        struct object *obj = &parents->item->object;
 
-                       if (++counter > 1)
+                       if (counter++)
                                put_object_name(options, obj, "%s^%d",
                                        name, counter);
                        else if (generation > 0)