logger.error('Could not determine GIT_UPSTREAM_BRANCH')
exit_error()
- # git-buildpackage uses only treeish object in v0.5.10,
- # let's fetch it correctly:
- GIT_UPSTREAM_BRANCH = git_helper.git_get_treeish(
- os.path.join('origin', GIT_UPSTREAM_BRANCH)
- )
-
repo = git.repo.Repo()
if GIT_DEBIAN_BRANCH != 'master':
os.path.join('origin', GIT_DEBIAN_BRANCH)
)
+ # git-buildpackage uses only treeish object in v0.5.10,
+ # let's fetch it correctly
+ # TODO: upgrade git-buildpackage
+ GIT_UPSTREAM_BRANCH = git_helper.git_get_treeish(
+ os.path.join('origin', GIT_UPSTREAM_BRANCH)
+ )
+
cleanup_files = ('.gbp.conf', 'debian/gbp.conf', '.git/gbp.conf')
result = git_helper.git_cleanup_branch(cleanup_files)
commit_files = result["goods"].keys()