diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-02 23:17:31 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-03 11:21:34 +0000 |
commit | e11cf39bf9e1282d00a1f1389e402520c997bdcb (patch) | |
tree | f0c2a5fc9e9ef065c59ce543593047ef66317602 /meta/classes | |
parent | 2a163834b025bb3bb39f019d4f9d283a68de1526 (diff) | |
download | poky-e11cf39bf9e1282d00a1f1389e402520c997bdcb.tar.gz |
buildhistory: Drop git-gc call as obsolete
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.
(From OE-Core rev: 0a88f9109f7670a6b188463a19392d445af6ff40)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index ce3abaa69d..d735dd5fb5 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -877,7 +877,6 @@ END | |||
877 | # Porcelain output looks like "?? packages/foo/bar" | 877 | # Porcelain output looks like "?? packages/foo/bar" |
878 | # Ensure we commit metadata-revs with the first commit | 878 | # Ensure we commit metadata-revs with the first commit |
879 | buildhistory_single_commit "$CMDLINE" "$HOSTNAME" dummy | 879 | buildhistory_single_commit "$CMDLINE" "$HOSTNAME" dummy |
880 | git gc --auto --quiet | ||
881 | else | 880 | else |
882 | buildhistory_single_commit "$CMDLINE" "$HOSTNAME" | 881 | buildhistory_single_commit "$CMDLINE" "$HOSTNAME" |
883 | fi | 882 | fi |