]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
buildhistory: Drop git-gc call as obsolete
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 2 Dec 2024 23:17:31 +0000 (23:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Dec 2024 11:12:48 +0000 (11:12 +0000)
buildhistory used to result in many individual objects in the repo which
could affect performance. This gc call was added over a decade ago to avoid
those performance issues. Modern git calls git-gc when needed and this kind
of workaround should no longer be needed.

There is a small chance this is contributing to problems with the autobuilder
buildhistory repositories, so simplifying the code may help that too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass

index ce3abaa69d41c9c8e0b9242f6307ac500941fe13..d735dd5fb5dad1e51bbde05661c349c2f63e0242 100644 (file)
@@ -877,7 +877,6 @@ END
                        # Porcelain output looks like "?? packages/foo/bar"
                        # Ensure we commit metadata-revs with the first commit
                        buildhistory_single_commit "$CMDLINE" "$HOSTNAME" dummy
-                       git gc --auto --quiet
                else
                        buildhistory_single_commit "$CMDLINE" "$HOSTNAME"
                fi