[riot-notifications] [RIOT-OS/RIOT] backport_pr: set tracking branch to remotely created branch (#11435)

Gaƫtan Harter notifications at github.com
Wed Apr 24 15:10:10 CEST 2019


cladmi commented on this pull request.



> @@ -204,6 +204,7 @@ def main():
         # Delete worktree
         print("Pruning temporary workdir at {}".format(worktree_dir))
         _delete_worktree(repo, worktree_dir)
+    repo.branches[new_branch].set_tracking_branch(push_info[0].remote_ref)

I think this should be done just after the `origin.push`. Otherwise with `--noop`:

```
UnboundLocalError: local variable 'push_info' referenced before assignment
```

Which also would be the logical equivalent of `git push -u`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11435#pullrequestreview-230097140
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190424/3fa3dd98/attachment.html>


More information about the notifications mailing list