From edf74e160e047e3bad86f7cf52032c12cf0813f0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 23 Jan 2024 15:39:53 -0600 Subject: still has oneliner display bug Signed-off-by: Jeff Carr --- git.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'git.go') diff --git a/git.go b/git.go index 48d2e5f..a3b4023 100644 --- a/git.go +++ b/git.go @@ -10,12 +10,14 @@ import ( ) func (rs *RepoStatus) String() string { - return rs.goSrcPath.String() + return rs.path.String() } +/* func (rs *RepoStatus) GetPath() string { - return rs.goSrcPath.String() + return rs.path.String() } +*/ func (rs *RepoStatus) GetCurrentBranchName() string { return rs.currentBranch.String() @@ -238,7 +240,7 @@ func (rs *RepoStatus) GetStatus() string { log.Log(INFO, "Branches are Perfect") return "PERFECT" } - log.Log(INFO, rs.GetPath(), "Branches are not Perfect") + log.Log(INFO, rs.String(), "Branches are not Perfect") return "unknown branches" } -- cgit v1.2.3