GNU bug report logs -
#78437
[PATCH] gnu: git-minimal: Fix ugly output of git submodule -h.
Previous Next
Full log
View this message in rfc822 format
* gnu/packages/version-control.scm (git-minimal)[arguments]<phases>:
Adjust the snippet patching git-submodule.sh to avoid the ugly
".git submodule-real" from git submodule -h.
---
gnu/packages/version-control.scm | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index ed96b524f83..f4bae91906d 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -437,13 +437,11 @@ (define PATH-variable-definition
"GNU"))) ;matched against '*'
;; git-submodule sources 'git-sh-setup.sh', but not before
- ;; invoking the basename and sed commands... patch them to their
- ;; absolute location.
+ ;; invoking the basename and sed commands... Using those
+ ;; leads to some ugly .git submodule-real, hardcode instead.
(substitute* "git-submodule.sh"
- (("\\$\\(basename")
- (string-append "$(" (search-input-file inputs "bin/basename")))
- (("sed -e")
- (string-append (search-input-file inputs "bin/sed") " -e")))))
+ (("^dashless=.*")
+ "dashless=\"git submodule\"\n"))))
(add-after 'configure 'patch-makefiles
(lambda _
(substitute* "Makefile"
--
2.49.0
--
Best regards,
Nicolas Graves
This bug report was last modified 23 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.