diff options
| author | Jeff Carr <[email protected]> | 2024-12-03 13:24:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-03 13:24:14 -0600 |
| commit | 1048ebc85127e0ba2493da3deb54b08620555b9b (patch) | |
| tree | 18e6a683eb1492fed10abfe0b553286a6d64e026 /init.go | |
| parent | a6b9170ad0ae6ac3e7da794275d692f974ed2140 (diff) | |
fix for forge.IsReadOnly()v0.22.26
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList { repos := me.forge.Repos.SortByGoPath() for repos.Scan() { repo := repos.Next() - if me.forge.IsReadOnly(repo.GoPath) { + if me.forge.IsReadOnly(repo) { log.Info("repo scan readonly directory:", repo.FullPath) } else { log.Info("repo scan writable directory:", repo.FullPath) @@ -50,7 +50,7 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList { repos := me.forge.Repos.SortByGoPath() for repos.Scan() { repo := repos.Next() - if me.forge.IsReadOnly(repo.GoPath) { + if me.forge.IsReadOnly(repo) { log.Info("repo scan readonly directory:", repo.FullPath) } else { log.Info("repo scan writable directory:", repo.FullPath) |
