docs: wording

This commit is contained in:
decentral1se 2021-12-19 23:29:05 +01:00
parent bc34be4357
commit 88d4984248
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ func IsClean(recipeName string) (bool, error) {
return status.IsClean(), nil
}
// GetExcludesFiles reads the exlude files from a global git ignore
// GetExcludesFiles reads the exlude files from a global gitignore
func GetExcludesFiles() ([]gitignore.Pattern, error) {
var err error
var patterns []gitignore.Pattern
@ -100,7 +100,7 @@ func parseGitConfig() (*gitConfigPkg.Config, error) {
globalGitConfig := filepath.Join(usr.HomeDir, ".gitconfig")
if _, err := os.Stat(globalGitConfig); err != nil {
if os.IsNotExist(err) {
logrus.Debugf("no %s exists, not reading any global git ignore config", globalGitConfig)
logrus.Debugf("no %s exists, not reading any global gitignore config", globalGitConfig)
return cfg, nil
}
return cfg, err
@ -142,7 +142,7 @@ func parseExcludesFile(excludesfile string) ([]gitignore.Pattern, error) {
if _, err := os.Stat(excludesfile); err != nil {
if os.IsNotExist(err) {
logrus.Debugf("no %s exists, skipping reading ignore paths", excludesfile)
logrus.Debugf("no %s exists, skipping reading gitignore paths", excludesfile)
return ps, nil
}
return ps, err