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>
Patrick Steinhardt committed
Oct 15, 2025 at 08:04 UTC
0de14fe3f3c821fe6dcaf3f86cdfaea427f5ca70
1 file changed
-4
ci/install-dependencies.sh
-4
@@ -120,21 +120,17 @@ esac
120
121
case "$jobname" in
122
ClangFormat)
123
- sudo apt-get -q update
123
sudo apt-get -q -y install clang-format
124
;;
125
StaticAnalysis)
127
- sudo apt-get -q update
126
sudo apt-get -q -y install coccinelle libcurl4-openssl-dev libssl-dev \
127
libexpat-dev gettext make
128
;;
129
sparse)
132
- sudo apt-get -q update -q
130
sudo apt-get -q -y install libssl-dev libcurl4-openssl-dev \
131
libexpat-dev gettext zlib1g-dev sparse
132
;;
133
Documentation)
137
- sudo apt-get -q update
134
sudo apt-get -q -y install asciidoc xmlto docbook-xsl-ns make
135
136
test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||