index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Christian Heusel <christian@heusel.eu> | 2023-10-09 16:24:50 +0200 |
---|---|---|
committer | Christian Heusel <christian@heusel.eu> | 2023-12-03 22:02:13 +0100 |
commit | c2d73d73aec9c21ffdb0677a7e3ef96a42c1ba47 (patch) | |
tree | f07ffb693649c0e85c9a10898b09209ef2d431c1 /src | |
parent | f2cafa3cb0941be8235025434620adbf5849a432 (diff) |
-rw-r--r-- | src/commitpkg.in | 6 |
diff --git a/src/commitpkg.in b/src/commitpkg.in index f979d61..6d4b014 100644 --- a/src/commitpkg.in +++ b/src/commitpkg.in @@ -205,14 +205,14 @@ if [[ -n $(git status --porcelain --untracked-files=no) ]]; then echo "$msgtemplate" > "$msgfile" if [[ -n $GIT_EDITOR ]]; then $GIT_EDITOR "$msgfile" || die + elif giteditor=$(git config --get core.editor); then + $giteditor "$msgfile" || die elif [[ -n $VISUAL ]]; then $VISUAL "$msgfile" || die elif [[ -n $EDITOR ]]; then $EDITOR "$msgfile" || die - elif giteditor=$(git config --get core.editor); then - $giteditor "$msgfile" || die else - die "No usable editor found (tried \$GIT_EDITOR, \$VISUAL, \$EDITOR, git config [core.editor])." + die "No usable editor found (tried \$GIT_EDITOR, git config [core.editor], \$VISUAL, \$EDITOR)." fi [[ -s $msgfile ]] || die stat_busy 'Committing changes' |