From: Mathias Klette Date: Tue, 28 May 2013 11:56:51 +0000 (+0200) Subject: debian_build: ENV['GIT_BRANCH'] may include origin as prefix, use local_branch instead X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=36bb4b39870629e3b93e06dcf7634809417b1230;p=profitbricks%2Fjenkins-build-scripts.git debian_build: ENV['GIT_BRANCH'] may include origin as prefix, use local_branch instead --- diff --git a/debian_build.py b/debian_build.py index 3956966..f3f1b2f 100755 --- a/debian_build.py +++ b/debian_build.py @@ -208,7 +208,7 @@ if __name__ == '__main__': )) exit_error() - new_dist = 'dev-{0}'.format(ENV['GIT_BRANCH'].replace("/", "-")) + new_dist = 'dev-{0}'.format(local_branch.replace("/", "-")) new_version = '{version}~experimental{date}+{build}+{commit}'.format( version = curr_version, date = daily_date,