From 559852d542575f2415a480059e587cd50078012b Mon Sep 17 00:00:00 2001 From: chriswalz Date: Wed, 24 Mar 2021 22:32:44 -0400 Subject: [PATCH] fix bit fast-forwarded not printing in some circumstances --- cmd/git.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/git.go b/cmd/git.go index 987bb99..f186834 100644 --- a/cmd/git.go +++ b/cmd/git.go @@ -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 }