Compare commits
No commits in common. "4b65d05dcc20f792249d55151da34ebc3c2c15f3" and "dd84c45c71d42a71fd1d8dffd219356f23ccef3d" have entirely different histories.
4b65d05dcc
...
dd84c45c71
14
main.go
14
main.go
|
@ -56,18 +56,10 @@ func main() {
|
||||||
}
|
}
|
||||||
uri := fs.Arg(0)
|
uri := fs.Arg(0)
|
||||||
|
|
||||||
if strings.Index(uri, "/") == -1 {
|
if *updateFlag && strings.Index(uri, "/") == -1 {
|
||||||
if !*updateFlag {
|
if pkg, ok := m.Packages[uri]; ok {
|
||||||
fmt.Printf("%q was not a URI and --update was not passed\n", uri)
|
uri = pkg.Repo
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg, ok := m.Packages[uri]
|
|
||||||
if !ok {
|
|
||||||
fmt.Printf("%q was not a URI and didn't match an installed package\n", uri)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
uri = pkg.Repo
|
|
||||||
}
|
}
|
||||||
|
|
||||||
f, err = forge.NewGitea(uri)
|
f, err = forge.NewGitea(uri)
|
||||||
|
|
Reference in New Issue