diff --git a/cmd/commit.go b/cmd/commit.go index b1d8109..d9dee58 100644 --- a/cmd/commit.go +++ b/cmd/commit.go @@ -320,13 +320,17 @@ var commitCmd = &cobra.Command{ } } - // git commit automatically - color.Cyan("Git record changes to the repository") - output, err := g.Commit(commitMessage) - if err != nil { - return err + noCommit := os.Getenv("GIT_INDEX_FILE") != "" + + // git commit automatically unless running from within hook + if !noCommit { + color.Cyan("Git record changes to the repository") + output, err := g.Commit(commitMessage) + if err != nil { + return err + } + color.Yellow(output) } - color.Yellow(output) return nil }, } diff --git a/prompt/language.go b/prompt/language.go index b8909dd..7f3b066 100644 --- a/prompt/language.go +++ b/prompt/language.go @@ -9,6 +9,7 @@ var languageMaps = map[string]string{ "ja": "Japanese", "pt": "Portuguese", "pt-br": "Brazilian Portuguese", + "ru": "Russian", } // GetLanguage returns the language name for the given language code,