"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Scott Bennett <sbennett1990@gmail.com>
Subject:
Editor being ignored?
To:
gameoftrees@openbsd.org
Date:
Mon, 1 Mar 2021 00:13:06 -0500

Download raw body.

Thread
It appears as though got is ignoring my editor preference.

I use xterm(1), and I prefer my command-line editing mode to be emacs style
and my screen editor to be vi(1). So I have the following environment
variables set:

	$ echo $SHELL
	/bin/ksh
	$ echo $VISUAL
	emacs
	$ echo $EDITOR
	vi

But in a worktree with staged changes, ed(1) is spawned instead of vi(1):

	$ got commit
	91
	^D
	got: no changes made to commit message, aborting

I'm using got on 6.8 -stable, version 0.42. Is there something I'm missing?
I have a fuzzy memory that this configuration worked as I expected at some
point between OpenBSD 6.7 and 6.8, but I can confirm the above behavior on
both 6.7 -stable and 6.8 -stable.

If this was a bug that was fixed in -current, then I'll patiently wait for
6.9, and please excuse the noise :)

Thanks,
Scott Bennett