[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/email-revision-details da3795b 1/2: * elpa-admin.el (elpa
From: |
Phil Sainty |
Subject: |
[elpa] scratch/email-revision-details da3795b 1/2: * elpa-admin.el (elpaa--get-release-revision): Workaround git bug |
Date: |
Fri, 6 Aug 2021 11:16:52 -0400 (EDT) |
branch: scratch/email-revision-details
commit da3795b2f4209a7aed22cbe830b391b0969b6db3
Author: Phil Sainty <phil@catalyst.net.nz>
Commit: Phil Sainty <phil@catalyst.net.nz>
* elpa-admin.el (elpaa--get-release-revision): Workaround git bug
---
elpa-admin.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/elpa-admin.el b/elpa-admin.el
index e26108b..fa01001 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -184,7 +184,11 @@ commit which modified the \"Version:\" pseudo header."
"--pretty=format:%H"
"-L" (concat "/^;;* *\\(Package-\\)\\?Version:/,+1:"
(file-name-nondirectory mainfile))))
- (buffer-string)
+ ;; The --no-patch (aka -s) option does not work
+ ;; with "git log -L<from>,<to>:<path>" before git
+ ;; version 2.22; so capture only the first line.
+ (buffer-substring-no-properties
+ (goto-char (point-min)) (line-end-position))
(cons 'error (buffer-string))))))
(if (stringp release-rev)
(progn