From: Mathias Klette Date: Wed, 16 May 2012 16:15:08 +0000 (+0200) Subject: force delete of old local branch before X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=6c2d032ec40638620a844367edc2cd0161f88709;p=profitbricks%2Fjenkins-build-scripts.git force delete of old local branch before --- diff --git a/debian_build.py b/debian_build.py index 9aeaef9..b0acaab 100755 --- a/debian_build.py +++ b/debian_build.py @@ -260,6 +260,7 @@ if __name__ == '__main__': gitcmd = git.Git('.') logger.debug('%s' %(gitcmd.reset('--hard','HEAD'))) logger.debug('%s' %(gitcmd.clean('-fdx'))) + logger.debug('%s' %(gitcmd.branch('-D','%s' %(localname)))) logger.debug('%s' %(gitcmd.checkout('-b','%s' %(localname),'%s' %(remotename)))) except Exception, exception: raise Exception('Failure while managing Git clone:\n%s' %(exception))