diff --git a/go/cmd/dolt/commands/log_graph.go b/go/cmd/dolt/commands/log_graph.go index c032f17c667..2d25cd83b2b 100644 --- a/go/cmd/dolt/commands/log_graph.go +++ b/go/cmd/dolt/commands/log_graph.go @@ -391,7 +391,7 @@ func printOneLineGraph(graph [][]string, pager *outputpager.Pager, apr *argparse pager.Writer.Write([]byte("\n")) } - pager.Writer.Write([]byte(fmt.Sprintf("%s %s ", strings.Join(graph[commits[i].Row], ""), color.YellowString("commit%s ", commits[i].Commit.commitHash)))) + pager.Writer.Write([]byte(fmt.Sprintf("%s %s ", strings.Join(graph[commits[i].Row], ""), color.YellowString("commit %s ", commits[i].Commit.commitHash)))) if decoration != "no" { printRefs(pager, &commits[i].Commit, decoration) } diff --git a/go/cmd/dolt/commands/utils.go b/go/cmd/dolt/commands/utils.go index 2651766e5d6..9c60d717f9d 100644 --- a/go/cmd/dolt/commands/utils.go +++ b/go/cmd/dolt/commands/utils.go @@ -631,14 +631,14 @@ func printRefs(pager *outputpager.Pager, comm *CommitInfo, decoration string) { yellow := color.New(color.FgYellow) boldCyan := color.New(color.FgCyan, color.Bold) - pager.Writer.Write([]byte(yellow.Sprintf(" ("))) + pager.Writer.Write([]byte(yellow.Sprintf("("))) if comm.isHead { pager.Writer.Write([]byte(boldCyan.Sprintf("HEAD -> "))) } joinedReferences := strings.Join(references, yellow.Sprint(", ")) - pager.Writer.Write([]byte(yellow.Sprintf("%s)", joinedReferences))) + pager.Writer.Write([]byte(yellow.Sprintf("%s) ", joinedReferences))) } // getCommitInfo returns the commit info for the given ref.