func getMessageFile(about string) (string, error) { gitDir, err := git.Dir() if err != nil { return "", err } return filepath.Join(gitDir, fmt.Sprintf("%s_EDITMSG", about)), nil }
func LocalRepo() (repo *GitHubRepo, err error) { repo = &GitHubRepo{} _, err = git.Dir() if err != nil { err = fmt.Errorf("fatal: Not a git repository") return } return }