in filemanager/gitwrapper.go [46:57]
func (fm *FileManager) runGitRepositoryCheck() *Error {
cmd, customErr := fm.buildGitCommand("rev-parse", "--is-inside-work-tree")
if customErr != nil {
return customErr
}
if err := cmd.Run(); err != nil {
return &Error{code: http.StatusUnprocessableEntity, err: fmt.Errorf("the path is not a git repository")}
}
return nil
}