(fileName, content string, old *plumbing.Reference)
| 11 | ) |
| 12 | |
| 13 | func (d *DotGit) setRef(fileName, content string, old *plumbing.Reference) (err error) { |
| 14 | if billy.CapabilityCheck(d.fs, billy.ReadAndWriteCapability) { |
| 15 | return d.setRefRwfs(fileName, content, old) |
| 16 | } |
| 17 | |
| 18 | return d.setRefNorwfs(fileName, content, old) |
| 19 | } |
| 20 | |
| 21 | func (d *DotGit) setRefRwfs(fileName, content string, old *plumbing.Reference) (err error) { |
| 22 | // If we are not checking an old ref, just truncate the file. |
no test coverage detected