(path string)
| 791 | } |
| 792 | |
| 793 | func (w *Worktree) isSymlink(path string) bool { |
| 794 | if s, err := w.Filesystem.Lstat(path); err == nil { |
| 795 | return s.Mode()&os.ModeSymlink != 0 |
| 796 | } |
| 797 | return false |
| 798 | } |
| 799 | |
| 800 | func (w *Worktree) readGitmodulesFile() (*config.Modules, error) { |
| 801 | if w.isSymlink(gitmodulesFile) { |
no test coverage detected