GNU bug report logs -
#31488
[PATCH] gnu: git: Add "credential-netrc" output.
Previous Next
Reported by: Pierre Neidhardt <ambrevar <at> gmail.com>
Date: Fri, 18 May 2018 09:23:01 UTC
Severity: normal
Tags: patch
Done: Gábor Boskovits <boskovits <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 22 Jun 2018 11:48:59 +0200
with message-id <CAE4v=pjrCnL0oCEpxbJem+JA2DWGoDBSL4AaKB6Ae-1QqxpTVg <at> mail.gmail.com>
and subject line gnu: git: Add "credential-netrc" output.
has caused the debbugs.gnu.org bug report #31488,
regarding [PATCH] gnu: git: Add "credential-netrc" output.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
31488: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31488
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
* gnu/packages/version-control.scm (git): Add "credential-netrc"
output.
---
gnu/packages/version-control.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index b41529d4f..4892c7ab8 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -188,6 +188,7 @@ as well as the classic centralized workflow.")
(outputs '("out" ; the core
"send-email" ; for git-send-email
"svn" ; git-svn
+ "credential-netrc" ; git-credential-netrc
"gui")) ; gitk, git gui
(arguments
`(#:make-flags `("V=1" ;more verbose compilation
@@ -217,6 +218,8 @@ as well as the classic centralized workflow.")
(("/bin/sh") (which "sh"))
(("/usr/bin/perl") (which "perl"))
(("/usr/bin/python") (which "python")))
+ (substitute* "contrib/credential/netrc/git-credential-netrc"
+ (("/usr/bin/perl") (which "perl")))
#t))
(add-after 'configure 'add-PM.stamp
(lambda _
@@ -271,6 +274,13 @@ as well as the classic centralized workflow.")
(copy-file "contrib/completion/git-completion.bash"
(string-append completions "/git"))
#t)))
+ (add-after 'install 'install-credential-netrc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((netrc (assoc-ref outputs "credential-netrc"))
+ (bin (string-append netrc "/bin")))
+ (mkdir-p bin)
+ (install-file "contrib/credential/netrc/git-credential-netrc" bin)
+ #t)))
(add-after 'install 'split
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Split the binaries to the various outputs.
--
2.17.0
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
Thanks for the patch!
Pushed as *145b0693.*
[Message part 5 (text/html, inline)]
This bug report was last modified 6 years and 334 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.