(path string)
| 818 | } |
| 819 | |
| 820 | func (w *Worktree) isSymlink(path string) bool { |
| 821 | if s, err := w.Filesystem.Lstat(path); err == nil { |
| 822 | return s.Mode()&os.ModeSymlink != 0 |
| 823 | } |
| 824 | return false |
| 825 | } |
| 826 | |
| 827 | func (w *Worktree) readGitmodulesFile() (*config.Modules, error) { |
| 828 | if w.isSymlink(gitmodulesFile) { |
no test coverage detected