Skip to content

Commit

Permalink
Merge pull request f4pga#1798 from litghost/update_tools_to_handle_no…
Browse files Browse the repository at this point in the history
…_wip

Handle case when there are no wip/ branches.
  • Loading branch information
litghost committed Nov 30, 2020
2 parents 0e92815 + 7f314bd commit 848c29a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/update_tools/update_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,11 @@ def main():

revert_to_master(g, repo, remote)

branches_string = ' '.join(branches)
result = merge_branches(location, branches_string)
if branches:
branches_string = ' '.join(branches)
result = merge_branches(location, branches_string)
else:
result = True

if not result:
revert_to_master(g, repo, remote)
Expand Down

0 comments on commit 848c29a

Please sign in to comment.