From 72e8d3659f3777f1e098dcc69453bf21df46f90b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 4 Sep 2025 09:58:50 -0500 Subject: [PATCH] use fullpath if namespace is blank --- humanTable.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/humanTable.go b/humanTable.go index c00ca6a..612e789 100644 --- a/humanTable.go +++ b/humanTable.go @@ -222,6 +222,9 @@ func (f *Forge) printRepoToTable(repo *gitpb.Repo, sizes []int, full bool) { var cname string = repo.GetCurrentBranchName() var gopath string = repo.GetNamespace() + if gopath == "" { + gopath = repo.GetFullPath() + } var rtype string = repo.GetRepoType() // ctime := repo.Tags.GetAge(mhort) @@ -300,12 +303,9 @@ func (f *Forge) printForgedToTable(repo *gitpb.Repo, sizes []int) { var ns string = repo.GetNamespace() - // ctime := repo.Tags.GetAge(mhort) - // age := shell.FormatDuration(time.Since(ctime)) age := shell.FormatDuration(repo.BranchAge(cname)) var args []string - // args = []string{cname, age, mhort, dhort, uhort, chort, lasttag, thort, rtype, gopath} args = []string{ns, cname, age, mhort, dhort, lasttag, "", "", "", ""} start := standardTableSize10(sizes, args)