help-guix
[Top][All Lists]
Advanced

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

Re: Magit interactive rebase error: perl not found


From: Chris Marusich
Subject: Re: Magit interactive rebase error: perl not found
Date: Thu, 02 Aug 2018 19:35:09 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Pierre Neidhardt <address@hidden> writes:

> When rebasing interactively with Magit, I get the following error
>
>   1 git … rebase -i d64bc3b\^
> /home/ambrevar/.guix-profile/libexec/git-core/git-rebase--interactive: line 
> 277: perl: command not found
> Could not execute editor
>
> From commandline it works fine.  If I install perl in my user profile,
> it works too.
>
> I suspect some defvar patch to be missing.
>
> Anyone else?

I don't use Magit, so I can't say.  What's in the
git-rebase--interactive file on line 277?  In my case, it's this:

267    git_sequence_editor () {
268        if test -z "$GIT_SEQUENCE_EDITOR"
269        then
270            GIT_SEQUENCE_EDITOR="$(git config sequence.editor)"
271            if [ -z "$GIT_SEQUENCE_EDITOR" ]
272            then
273                GIT_SEQUENCE_EDITOR="$(git var GIT_EDITOR)" || return $?
274            fi
275        fi
276
277        eval "$GIT_SEQUENCE_EDITOR" '"$@"'
278    }

Assuming it's the same for you, it would be interesting to see what the
value of $GIT_SEQUENCE_EDITOR and $@ are in this case.  Maybe you could
hack together a custom Git package to figure it out?

-- 
Chris

Attachment: signature.asc
Description: PGP signature


reply via email to

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