diff options
Diffstat (limited to 'git-commit-script')
-rwxr-xr-x | git-commit-script | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/git-commit-script b/git-commit-script index f8d568ce88..42ee399bc1 100755 --- a/git-commit-script +++ b/git-commit-script @@ -5,9 +5,7 @@ then cat .editmsg exit 1 fi -ED=${VISUAL:$EDITOR} -ED=${ED:vi} -$ED .editmsg +${VISUAL:-${EDITOR:-vi}} .editmsg grep -v '^#' < .editmsg | git-stripspace > .cmitmsg [ -s .cmitmsg ] || exit 1 tree=$(git-write-tree) || exit 1 |