From: "Alessio Attilio via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Alessio Attilio <attilio.alessio@protonmail.com>,
Alessio Attilio <attilio.alessio@protonmail.com>
Subject: [PATCH] ci: use sudo when replacing dirname
Date: Sun, 29 Nov 2026 17:48:29 +0000 [thread overview]
Message-ID: <pull.2335.git.1795974509492.gitgitgadget@gmail.com> (raw)
From: Alessio Attilio <attilio.alessio@protonmail.com>
Ubuntu 26.04 already provides /usr/bin/dirname. The dependency
installer replaces it with gnudirname to work around a bug in
uutils, but needs elevated privileges to replace the existing file.
Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
---
ci: use sudo when replacing dirname
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2335%2Fkairosci%2Fattilio%2Fci-dirname-fix-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2335/kairosci/attilio/ci-dirname-fix-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/2335
ci/install-dependencies.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh
index 10c3530d1a..fc506c436d 100755
--- a/ci/install-dependencies.sh
+++ b/ci/install-dependencies.sh
@@ -84,7 +84,7 @@ ubuntu-*|i386/ubuntu-*|debian-*)
# See <https://github.com/uutils/coreutils/issues/10508>.
if test -x /usr/bin/gnudirname
then
- ln -sfT /usr/bin/gnudirname /usr/bin/dirname
+ sudo ln -sfT /usr/bin/gnudirname /usr/bin/dirname
fi
case "$distro" in
base-commit: 1630431f326e15fcde608827b5ff38422528eb59
--
gitgitgadget
next reply other threads:[~2026-11-29 17:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 17:48 Alessio Attilio via GitGitGadget [this message]
2026-11-29 17:59 ` [PATCH] ci: use sudo when replacing dirname Todd Zullinger
2026-11-29 18:32 ` ATTILIO ALESSIO
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.2335.git.1795974509492.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=attilio.alessio@protonmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.