use fullpath if namespace is blank
This commit is contained in:
parent
18aad5f1b5
commit
72e8d3659f
|
@ -222,6 +222,9 @@ func (f *Forge) printRepoToTable(repo *gitpb.Repo, sizes []int, full bool) {
|
||||||
var cname string = repo.GetCurrentBranchName()
|
var cname string = repo.GetCurrentBranchName()
|
||||||
|
|
||||||
var gopath string = repo.GetNamespace()
|
var gopath string = repo.GetNamespace()
|
||||||
|
if gopath == "" {
|
||||||
|
gopath = repo.GetFullPath()
|
||||||
|
}
|
||||||
var rtype string = repo.GetRepoType()
|
var rtype string = repo.GetRepoType()
|
||||||
|
|
||||||
// ctime := repo.Tags.GetAge(mhort)
|
// ctime := repo.Tags.GetAge(mhort)
|
||||||
|
@ -300,12 +303,9 @@ func (f *Forge) printForgedToTable(repo *gitpb.Repo, sizes []int) {
|
||||||
|
|
||||||
var ns string = repo.GetNamespace()
|
var ns string = repo.GetNamespace()
|
||||||
|
|
||||||
// ctime := repo.Tags.GetAge(mhort)
|
|
||||||
// age := shell.FormatDuration(time.Since(ctime))
|
|
||||||
age := shell.FormatDuration(repo.BranchAge(cname))
|
age := shell.FormatDuration(repo.BranchAge(cname))
|
||||||
|
|
||||||
var args []string
|
var args []string
|
||||||
// args = []string{cname, age, mhort, dhort, uhort, chort, lasttag, thort, rtype, gopath}
|
|
||||||
args = []string{ns, cname, age, mhort, dhort, lasttag, "", "", "", ""}
|
args = []string{ns, cname, age, mhort, dhort, lasttag, "", "", "", ""}
|
||||||
start := standardTableSize10(sizes, args)
|
start := standardTableSize10(sizes, args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue