Help files are located at test/files from the root the lazygit repo. E.g. You may want to create a pre-commit hook file there, then call this function to copy it into your test repo.
(source string, destination string)
| 472 | // E.g. You may want to create a pre-commit hook file there, then call this |
| 473 | // function to copy it into your test repo. |
| 474 | func (self *Shell) CopyHelpFile(source string, destination string) *Shell { |
| 475 | return self.CopyFile(fmt.Sprintf("../../../../../files/%s", source), destination) |
| 476 | } |
| 477 | |
| 478 | func (self *Shell) CopyFile(source string, destination string) *Shell { |
| 479 | absSourcePath := filepath.Join(self.dir, source) |
no test coverage detected