index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Campbell Jones <git@serebit.com> | 2023-03-25 17:53:27 -0400 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-05-20 00:08:12 +0200 |
commit | a981ef40e84398475cfe04ac49b8118385249a96 (patch) | |
tree | 7de734be950a7f8ca30a2caae12a2e6132b2e555 /src/commitpkg.in | |
parent | fe2eb3076df36c619c22bf65c68e68f38ab39b83 (diff) |
-rw-r--r-- | src/commitpkg.in | 4 |
diff --git a/src/commitpkg.in b/src/commitpkg.in index 7573d9b..26117dc 100644 --- a/src/commitpkg.in +++ b/src/commitpkg.in @@ -198,8 +198,10 @@ if [[ -n $(git status --short --untracked-files=no) ]]; then $VISUAL "$msgfile" || die elif [[ -n $EDITOR ]]; then $EDITOR "$msgfile" || die + elif giteditor=$(git config --get core.editor); then + $giteditor "$msgfile" || die else - vi "$msgfile" || die + die "No usable editor found (tried \$GIT_EDITOR, \$VISUAL, \$EDITOR, git config [core.editor])." fi [[ -s $msgfile ]] || die stat_busy 'Committing changes' |