changelog: Use EDITOR environment variable
authorEd Bartosh <eduard.bartosh@intel.com>
Mon, 28 May 2012 12:09:48 +0000 (15:09 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Mon, 28 May 2012 12:09:48 +0000 (15:09 +0300)
Change-Id: Ic21f01c94a06fdd0d64e959eaff3b590dc149f52

gitbuildsys/cmd_changelog.py

index e41de26..f31a19e 100644 (file)
@@ -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):