else:
gitrepo.remotes[name].update({type: url})
# this would also be helpful, but is not yet included in git lib
- gitrepo.name = gitrepo.remotes['origin']['fetch'].split('/')[-1].strip('.git')
+ repo_name = gitrepo.remotes['origin']['fetch'].split('/')[-1].strip('.git')
else:
- gitrepo.name = gitrepo.remotes.origin.url.split('/')[-1].strip('.git')
+ repo_name = gitrepo.remotes.origin.url.split('/')[-1].strip('.git')
logger.info('Remotes: %s' % gitrepo.remotes)
- logger.info('Repository Name: %s' % gitrepo.name)
+ logger.info('Repository Name: %s' % repo_name)
# .. some local variables
daily_date = BUILD_START.strftime('%Y%m%d%H%M%S')
# replace valid debian version chars that are invalid for git tagging
new_tag = curr_version.replace('~', '_').replace(':', ',')
# .. only take care of changelog automation if we want it to
- if gitrepo.name in AUTO_CHANGELOG_REPONAMES:
+ if repo_name in AUTO_CHANGELOG_REPONAMES:
do_autoincrement = True
# reset actions
if curr_dist == 'squeeze':