]> git.ipfire.org Git - thirdparty/git.git/commit
ci: deduplicate calls to `apt-get update`
authorPatrick Steinhardt <ps@pks.im>
Wed, 15 Oct 2025 06:04:05 +0000 (08:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Oct 2025 15:10:16 +0000 (08:10 -0700)
commit0de14fe3f3c821fe6dcaf3f86cdfaea427f5ca70
tree69404c74df8b0d5d2473c09c9ab90ffea7ca930f
parent1562d9a2adc52e8b580b68402e864c60a8fde5e8
ci: deduplicate calls to `apt-get update`

When installing dependencies we first check for the distribution that is
in use and then we check for the specific job. In the first step we
already install all dependencies required to build and test Git, whereas
the second step installs a couple of additional dependencies that are
only required to perform job-specific tasks.

In both steps we use `apt-get update` to update our repository sources.
This is unnecessary though: all platforms that use Aptitude would have
already executed this command in the distro-specific step anyway.

Drop the redundant calls.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/install-dependencies.sh