[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: git authenticate: Discover the repository.
From: |
guix-commits |
Subject: |
04/07: git authenticate: Discover the repository. |
Date: |
Wed, 1 May 2024 11:50:12 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 88573dd928a854139c63508c5454056e42482c90
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Mar 13 13:08:38 2024 +0100
git authenticate: Discover the repository.
This allows one to run ‘guix git authenticate’ from a sub-directory of
the checkout.
* guix/scripts/git/authenticate.scm (%default-options): Remove
‘directory’ key.
(guix-git-authenticate): Use ‘repository-discover’ when ‘directory’
option is missing.
Change-Id: Ifada00d559254971ed7eeb8c0a8d4ae74ff3defc
---
guix/scripts/git/authenticate.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/guix/scripts/git/authenticate.scm
b/guix/scripts/git/authenticate.scm
index a606f1c146..d81a0e1ffb 100644
--- a/guix/scripts/git/authenticate.scm
+++ b/guix/scripts/git/authenticate.scm
@@ -74,7 +74,7 @@
(alist-cons 'show-stats? #t result)))))
(define %default-options
- '((directory . ".")))
+ '())
(define (current-branch repository)
"Return the name of the checked out branch of REPOSITORY or #f if it could
@@ -236,9 +236,9 @@ expected COMMIT and SIGNER~%")))
(with-error-handling
(with-git-error-handling
- (let* ((directory (assoc-ref options 'directory))
- (show-stats? (assoc-ref options 'show-stats?))
- (repository (repository-open directory))
+ (let* ((show-stats? (assoc-ref options 'show-stats?))
+ (repository (repository-open (or (assoc-ref options 'directory)
+ (repository-discover "."))))
(commit signer (match (command-line-arguments options)
((commit signer)
(values commit signer))
- branch master updated (e2ba58a67f -> 5c13ab50b9), guix-commits, 2024/05/01
- 01/07: svn-download: Add dependency on tar+gzip for SWH retrieval., guix-commits, 2024/05/01
- 02/07: gnu: guile-git: Update to 0.7.0., guix-commits, 2024/05/01
- 05/07: git authenticate: Print something upon success., guix-commits, 2024/05/01
- 04/07: git authenticate: Discover the repository.,
guix-commits <=
- 07/07: news: Add entry for ‘guix git authenticate’ changes., guix-commits, 2024/05/01
- 03/07: git authenticate: Record introduction and keyring in ‘.git/config’., guix-commits, 2024/05/01
- 06/07: git authenticate: Install pre-push and post-checkout hooks., guix-commits, 2024/05/01