()
| 88 | } |
| 89 | |
| 90 | func (c *App) repositoryConfigFileName() string { |
| 91 | if filepath.Base(c.configPath) != c.configPath { |
| 92 | return c.configPath |
| 93 | } |
| 94 | |
| 95 | // bare filename specified without any directory (absolute or relative) |
| 96 | // resolve against OS-specific directory. |
| 97 | return filepath.Join(ospath.ConfigDir(), c.configPath) |
| 98 | } |
| 99 | |
| 100 | func resolveSymlink(path string) (string, error) { |
| 101 | st, err := os.Lstat(path) |
no test coverage detected