emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa-admin 4541ebe 430/439: * elpa-admin.el (elpaa--get-release


From: Philip Kaludercic
Subject: [nongnu] elpa-admin 4541ebe 430/439: * elpa-admin.el (elpaa--get-release-revision): Workaround for git bug
Date: Sun, 17 Oct 2021 15:48:51 -0400 (EDT)

branch: elpa-admin
commit 4541ebe87fc06b4af1f0be10b6988bde06a7c633
Author: Phil Sainty <psainty@orcon.net.nz>
Commit: Phil Sainty <psainty@orcon.net.nz>

    * elpa-admin.el (elpaa--get-release-revision): Workaround for 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]