PlainOpen opens a git repository from the given path. It detects if the repository is bare or a normal one. If the path doesn't contain a valid repository ErrRepositoryNotExists is returned
(path string)
| 295 | // repository is bare or a normal one. If the path doesn't contain a valid |
| 296 | // repository ErrRepositoryNotExists is returned |
| 297 | func PlainOpen(path string) (*Repository, error) { |
| 298 | return PlainOpenWithOptions(path, &PlainOpenOptions{}) |
| 299 | } |
| 300 | |
| 301 | // PlainOpenWithOptions opens a git repository from the given path with specific |
| 302 | // options. See PlainOpen for more info. |