From 800f0bd46ed8232440101fb9eb89c24920295e5d Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 28 May 2012 15:09:48 +0300 Subject: [PATCH] changelog: Use EDITOR environment variable Change-Id: Ic21f01c94a06fdd0d64e959eaff3b590dc149f52 --- gitbuildsys/cmd_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitbuildsys/cmd_changelog.py b/gitbuildsys/cmd_changelog.py index e41de26..f31a19e 100644 --- a/gitbuildsys/cmd_changelog.py +++ b/gitbuildsys/cmd_changelog.py @@ -30,7 +30,7 @@ from conf import configmgr from gbp.rpm.git import GitRepositoryError, RpmGitRepository -EDITOR = configmgr.get('editor') or 'vi' +EDITOR = configmgr.get('editor') or os.getenv('EDITOR') or 'vi' def add_entries(changesfile, new_entries): -- 2.7.4