check go.wit.com is mapping a repo
This commit is contained in:
parent
d7a0246af9
commit
95fd6ca05a
12
gitConfig.go
12
gitConfig.go
|
@ -191,6 +191,18 @@ func (rs *RepoStatus) readGitConfig() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (rs *RepoStatus) GitURL() string {
|
||||
origin, ok := rs.gitConfig.remotes["origin"]
|
||||
if ok {
|
||||
return origin.url
|
||||
}
|
||||
for i, s := range rs.gitConfig.remotes {
|
||||
log.Log(WARN, "remote:", i, s.url)
|
||||
}
|
||||
log.Log(WARN, "GitURL() repo has non-standard origin or is not uploaded")
|
||||
return ""
|
||||
}
|
||||
|
||||
// this checks to see if the repo is truly not dependent on _anything_ else
|
||||
// like spew or lib/widget
|
||||
func (rs *RepoStatus) CheckPrimativeGoMod() bool {
|
||||
|
|
Loading…
Reference in New Issue