Skip to content

Commit

Permalink
maintain repo even on non expected branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Aug 4, 2020
1 parent 4394215 commit 3992ce6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pbpy/pbtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def wipe_workspace():


def maintain_repo():
pblog.info("Starting repo maintenance...")

# only prune if we don't have a stash
out = get_combined_output(["git", "stash", "list"])

Expand Down
3 changes: 2 additions & 1 deletion pbsync/pbsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ def sync_handler(sync_val: str, repository_val=None, requested_bundle_name=None)
else:
pblog.info("Binaries are up-to-date")
else:
pblog.warning(f"Current branch is not supported for repository synchronization: {pbgit.get_current_branch_name()}. Auto synchronization will be disabled")
pblog.info(f"Current branch does not need auto synchronization: {pbgit.get_current_branch_name()}.")
pbtools.maintain_repo()

pblog.info("------------------")

Expand Down

0 comments on commit 3992ce6

Please sign in to comment.