summaryrefslogtreecommitdiff
path: root/gnu/packages/version-control.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2026-02-24 11:17:42 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2026-02-26 09:59:20 +0900
commite122291204edd294a03692127206bec2fe427225 (patch)
tree85d36911460fde03917a88f6d91bd7a3fd45ccc2 /gnu/packages/version-control.scm
parent14a4a2b8ed856a3681729fef9ccf91d07d4c2e16 (diff)
build: Patch the git-lfs hooks shebangs in `git-fetch'.
This reverts commit b6a070d2a3c059c1a574dc4048fb8f942e008799, which patched git-lfs so its hooks would refer to a 'sh' from the store, but this reference was at risk of going stale since the hooks are installed and preserved outside the store. The shebangs are now patched in the `git-fetch' procedure directly. * guix/scripts/perform-download.scm (perform-git-download): Expand comment. * guix/git-download.scm (bash-package): New variable. (git-fetch/in-band*): Add #:bash argument. (git-fetch-builder): Add it to `inputs', so that it gets added to PATH. * guix/build/git.scm (git-fetch): Substitute /bin/bash in the post-checkout git-lfs hook shebang. Fixes: https://codeberg.org/guix/guix/issues/5616 Reported-by: Simon Josefsson <simon@josefsson.org> Change-Id: Ife81737705bef5d0a1edad307ed77a479af4609e
Diffstat (limited to 'gnu/packages/version-control.scm')
-rw-r--r--gnu/packages/version-control.scm5
1 files changed, 0 insertions, 5 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index b54e296bcc3..f5db84f16c3 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -3953,11 +3953,6 @@ matching.")
#:test-flags #~(list "-skip" "TestHistoryRewriterUpdatesRefs")
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'patch-/bin/sh
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "src/github.com/git-lfs/git-lfs/v3/lfs/hook.go"
- (("/bin/sh")
- (search-input-file inputs "bin/sh")))))
;; Only build the man pages if ruby-asciidoctor is available.
#$@(if (this-package-native-input "ruby-asciidoctor")
#~((add-before 'build 'man-gen