Skip to content

Commit 97097dc

Browse files
committed
fix: do not double log git error
1 parent bae362b commit 97097dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/rootShell.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var cfgFile string
1515
var ShellCmd = &cobra.Command{
1616
Use: "bit",
1717
Short: "Bit is a Git CLI that predicts what you want to do",
18-
Long: `v0.5.7`,
18+
Long: `v0.5.8`,
1919
Run: func(cmd *cobra.Command, args []string) {
2020
completerSuggestionMap, bitCmdMap := CreateSuggestionMap(cmd)
2121

@@ -120,7 +120,7 @@ func RunGitCommandWithArgs(args []string) {
120120
var err error
121121
err = RunInTerminalWithColor("git", args)
122122
if err != nil {
123-
fmt.Println("Command may not exist", err)
123+
//fixme fmt.Println("Command may not exist", err) use debug level logging
124124
}
125125
return
126126
}
@@ -133,7 +133,7 @@ func GitCommandsPromptUsed(args []string, suggestionMap map[string][]prompt.Sugg
133133
// expected usage format
134134
// bit (checkout|switch|co) [-b] branch-name
135135
if args[len(args)-1] == "--version" {
136-
fmt.Println("bit version v0.5.6")
136+
fmt.Println("bit version v0.5.8")
137137
}
138138
if sub == "checkout" || sub == "switch" || sub == "co" {
139139
branchName := ""

0 commit comments

Comments
 (0)