diff --git a/pkg/gui/controllers/files_controller.go b/pkg/gui/controllers/files_controller.go index 313c23b42..0c45e7af8 100644 --- a/pkg/gui/controllers/files_controller.go +++ b/pkg/gui/controllers/files_controller.go @@ -617,10 +617,6 @@ func (self *FilesController) ignore(node *filetree.FileNode) error { } func (self *FilesController) exclude(node *filetree.FileNode) error { - if node.GetPath() == ".git/info/exclude" { - return self.c.ErrorMsg(self.c.Tr.Actions.ExcludeFileErr) - } - if node.GetPath() == ".gitignore" { return self.c.ErrorMsg(self.c.Tr.Actions.ExcludeGitIgnoreErr) } diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index a31c8ceee..77e2432ad 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -873,7 +873,6 @@ type Actions struct { IgnoreExcludeFile string IgnoreFileErr string ExcludeFile string - ExcludeFileErr string ExcludeGitIgnoreErr string Commit string EditFile string @@ -1796,7 +1795,6 @@ func EnglishTranslationSet() TranslationSet { IgnoreExcludeFile: "Ignore or exclude file", IgnoreFileErr: "Cannot ignore .gitignore", ExcludeFile: "Exclude file", - ExcludeFileErr: "Cannot exclude .git/info/exclude", ExcludeGitIgnoreErr: "Cannot exclude .gitignore", Commit: "Commit", EditFile: "Edit file", diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go index 3d3f26e06..a24d44ca2 100644 --- a/pkg/i18n/polish.go +++ b/pkg/i18n/polish.go @@ -807,7 +807,6 @@ func polishTranslationSet() TranslationSet { IgnoreExcludeFile: "Ignoruj lub wyklucz plik", IgnoreFileErr: "Nie można zignorować .gitignore", ExcludeFile: "Wyklucz plik", - ExcludeFileErr: "Nie można wykluczyć .git/info/exclude", ExcludeGitIgnoreErr: "Nie można wykluczyć .gitignore", Commit: "Commituj", EditFile: "Edytuj plik", diff --git a/pkg/i18n/russian.go b/pkg/i18n/russian.go index 0b4f2e618..5378d774e 100644 --- a/pkg/i18n/russian.go +++ b/pkg/i18n/russian.go @@ -599,7 +599,6 @@ func RussianTranslationSet() TranslationSet { IgnoreExcludeFile: "Игнорировать или исключить файл", IgnoreFileErr: "Невозможно игнорировать .gitignore", ExcludeFile: "Исключить файл", - ExcludeFileErr: "Невозможно исключить .git/info/exclude", ExcludeGitIgnoreErr: "Невозможно исключить .gitignore", Commit: "Коммит", EditFile: "Редактировать файл", diff --git a/pkg/i18n/traditional_chinese.go b/pkg/i18n/traditional_chinese.go index 54d283f00..56d2c99a0 100644 --- a/pkg/i18n/traditional_chinese.go +++ b/pkg/i18n/traditional_chinese.go @@ -667,7 +667,6 @@ func traditionalChineseTranslationSet() TranslationSet { IgnoreExcludeFile: "忽略或排除檔案", IgnoreFileErr: "無法忽略 .gitignore 檔案", ExcludeFile: "排除檔案", - ExcludeFileErr: "無法排除 .git/info/exclude 檔案", ExcludeGitIgnoreErr: "無法排除 .gitignore 檔案", Commit: "提交", EditFile: "編輯檔案",