Merge pull request #18 from jroweboy/master
Delete the remote branch before pushing
This commit is contained in:
commit
3111e5c61c
@ -157,6 +157,9 @@ class TagMergeBot:
|
|||||||
def sync(self):
|
def sync(self):
|
||||||
_git("push", "-f", self.push_repo["name"], "master", cwd=self.tracking_path)
|
_git("push", "-f", self.push_repo["name"], "master", cwd=self.tracking_path)
|
||||||
|
|
||||||
|
def remove_remote_branch(self):
|
||||||
|
_git("push", self.push_repo["name"], "--delete", self.branch_name, cwd=self.tracking_path)
|
||||||
|
|
||||||
def push(self):
|
def push(self):
|
||||||
_git("push", "-f", self.push_repo["name"], self.branch_name, cwd=self.tracking_path)
|
_git("push", "-f", self.push_repo["name"], self.branch_name, cwd=self.tracking_path)
|
||||||
|
|
||||||
@ -208,6 +211,7 @@ if __name__ == "__main__":
|
|||||||
t.pull_branches()
|
t.pull_branches()
|
||||||
failed = t.merge()
|
failed = t.merge()
|
||||||
logger.info("Number of failed merges: {failed}".format(failed=failed))
|
logger.info("Number of failed merges: {failed}".format(failed=failed))
|
||||||
|
t.remove_remote_branch()
|
||||||
t.push()
|
t.push()
|
||||||
|
|
||||||
# save this runs information
|
# save this runs information
|
||||||
|
Loading…
x
Reference in New Issue
Block a user