From 1ed79f86e2f52dffa2d1cb959ea005c841d83f1e Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Wed, 29 May 2013 14:07:56 +0200 Subject: [PATCH] common_code: GIT_BRANCH_NAME = GIT_BRANCH only if not already given --- common_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_code.py b/common_code.py index 403c35d..f2ad5d8 100755 --- a/common_code.py +++ b/common_code.py @@ -48,7 +48,7 @@ def exit_error(): ENV = os.environ ENV.setdefault('ARGV',' '.join(sys.argv)) ENV.setdefault('CWD',os.getcwd()) -ENV['GIT_BRANCH_NAME'] = ENV['GIT_BRANCH'] +ENV.setdefault('GIT_BRANCH_NAME', ENV['GIT_BRANCH']) BIN_DCH = '/usr/bin/dch' BIN_DPUT = '/usr/bin/dput' -- 2.39.5