branch: elpa-admin commit 4541ebe87fc06b4af1f0be10b6988bde06a7c633 Author: Phil Sainty <psai...@orcon.net.nz> Commit: Phil Sainty <psai...@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