logger.info('Reset and clean repository.')
gitcmd = git.Git('.')
logger.debug(
- 'git reset --hard HEAD:\n%s'
+ 'git reset --hard HEAD:\n%s'
%(gitcmd.reset('--hard','HEAD'))
)
logger.debug(
- 'git clean -fdx:\n%s'
+ 'git clean -fdx:\n%s'
%(gitcmd.clean('-fdx'))
)
logger.debug(
- 'git branch -D %s\n%s'
+ 'git branch -D %s\n%s'
%(localname,gitcmd.branch('-D','%s' %(localname)))
)
logger.info('Checkout branch %s.' %(remotename))
logger.debug(
- 'git checkout -b %s %s:\n%s'
+ 'git checkout -b %s %s:\n%s'
%(
localname,
remotename,