~ruther/guix-local

db88b5a85791d309e58cdd3e1f0ce5ecf8f2ce9b — ClĂ©ment Lassieur 8 years ago 21b99aa
gnu: gitolite: Avoid references to the store in authorized_keys.

* gnu/packages/version-control.scm (gitolite)[arguments]: Substitute
'$glshell' with 'gitolite-shell' in ssh-authkeys.
1 files changed, 7 insertions(+), 1 deletions(-)

M gnu/packages/version-control.scm
M gnu/packages/version-control.scm => gnu/packages/version-control.scm +7 -1
@@ 628,7 628,13 @@ also walk each side of a merge and test those changes individually.")
                        ;; invokes Perl.
                        (substitute* (find-files "." ".*")
                          ((" perl -")
                           (string-append " " perl " -"))))))
                           (string-append " " perl " -")))

                        ;; Avoid references to the store in authorized_keys.
                        ;; This works because gitolite-shell is in the PATH.
                        (substitute* "src/triggers/post-compile/ssh-authkeys"
                          (("\\$glshell \\$user")
                           "gitolite-shell $user")))))
                  (replace 'install
                    (lambda* (#:key outputs #:allow-other-keys)
                      (let* ((output (assoc-ref outputs "out"))