Skip to content

Commit

Permalink
sync-forks: quote branch name in debug output (#56)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
katexochen committed Jul 4, 2023
1 parent 5cb1644 commit ece7bd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/syncfork.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ func syncForks(cmd *cobra.Command, _ []string) error {
}

for _, targetBranch := range flags.targetBranches {
log.Debugf("%s: checking if branch %s exists", fork.GetFullName(), targetBranch)
log.Debugf("%s: checking if branch %q exists", fork.GetFullName(), targetBranch)
if _, err := c.GetBranch(cmd.Context(), fork, targetBranch); err == nil {
branch = targetBranch
log.Debugf("%s: using target branch %s", fork.GetFullName(), branch)
log.Debugf("%s: using target branch %q", fork.GetFullName(), branch)
break
}
}
Expand All @@ -105,7 +105,7 @@ func syncForks(cmd *cobra.Command, _ []string) error {
continue
}

log.Infof("%s: syncing fork branch %s with upstream", fork.GetFullName(), branch)
log.Infof("%s: syncing fork branch %q with upstream", fork.GetFullName(), branch)
result, err := c.SyncFork(cmd.Context(), fork, branch)
if errors.Is(err, context.Canceled) {
return err
Expand Down

0 comments on commit ece7bd1

Please sign in to comment.