def local_git_branch(repo_url, branch_name):
 with lcd(LOGDIR):
  local('if [ -d letsencrypt ]; then rm -rf letsencrypt; fi')
  local(('git clone %s letsencrypt --branch %s --single-branch' % (repo_url, branch_name)))
  local('tar czf le.tar.gz letsencrypt')

def local_git_branch ( repo_url , branch_name ) : with lcd ( LOGDIR ) : local ( 'if [ -d letsencrypt ]; then rm -rf letsencrypt; fi' ) local ( ( 'git clone %s letsencrypt --branch %s --single-branch' % ( repo_url , branch_name ) ) ) local ( 'tar czf le.tar.gz letsencrypt' )
clones branch <branch_name> of repo_url .