SetOrgHash will set the hash of the given org repo to use when loading.
(orgName, hash string)
| 222 | |
| 223 | // SetOrgHash will set the hash of the given org repo to use when loading. |
| 224 | func (c *Config) SetOrgHash(orgName, hash string) error { |
| 225 | repo, err := git.EnsureRepo(c.fs, "admin/org-"+orgName) |
| 226 | if err != nil { |
| 227 | return err |
| 228 | } |
| 229 | |
| 230 | err = repo.Checkout(hash) |
| 231 | if err != nil { |
| 232 | return err |
| 233 | } |
| 234 | |
| 235 | c.orgRepos[orgName] = hash |
| 236 | |
| 237 | return nil |
| 238 | } |
no test coverage detected