From 6c2d032ec40638620a844367edc2cd0161f88709 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Wed, 16 May 2012 18:15:08 +0200 Subject: [PATCH] force delete of old local branch before --- debian_build.py | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.39.5