diff options
| author | Jeff Carr <[email protected]> | 2025-09-04 09:58:50 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-04 09:58:50 -0500 |
| commit | 72e8d3659f3777f1e098dcc69453bf21df46f90b (patch) | |
| tree | e7b52d276a8bfe6e86f4b7eb7b22d3e46a21f8a0 /humanTable.go | |
| parent | 18aad5f1b507c2fa6b7dbf4a8c807bad36dd7c39 (diff) | |
use fullpath if namespace is blank
Diffstat (limited to 'humanTable.go')
| -rw-r--r-- | humanTable.go | 6 |
1 files 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) |
