Skip to content

Commit

Permalink
fix bit fast-forwarded not printing in some circumstances
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswalz committed Mar 25, 2021
1 parent 43ac193 commit 559852d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,9 @@ func refreshBranch() error {
if err != nil {
return err
}
if strings.Contains(strings.TrimSpace(string(msg)), "up to date") {
return nil
if strings.Contains(strings.TrimSpace(string(msg)), "Fast-forward") {
fmt.Println("Branch was fast-forwarded by bit")
}
fmt.Println("Branch was fast-forwarded by bit")
return nil
}

Expand Down

0 comments on commit 559852d

Please sign in to comment.