emacs-devel
[Top][All Lists]
Advanced

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

Re: [elpa] scratch/email-revision-details da3795b 1/2: * elpa-admin.el (


From: Stefan Monnier
Subject: Re: [elpa] scratch/email-revision-details da3795b 1/2: * elpa-admin.el (elpaa--get-release-revision): Workaround git bug
Date: Fri, 06 Aug 2021 11:30:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> 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

Feel free to push this to `master`, it looks good to me.


        Stefan




reply via email to

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