diff --git a/config/locales/models/project.en.yml b/config/locales/models/project.en.yml index 4d744e598..8ee8c1fa9 100644 --- a/config/locales/models/project.en.yml +++ b/config/locales/models/project.en.yml @@ -3,6 +3,7 @@ en: projects: branches: Branches delete_branch: Delete branch + restore_branch: Restore branch total_branches: Total %{count} branches total_branch: Total 1 branch no_branches: No branches diff --git a/config/locales/models/project.ru.yml b/config/locales/models/project.ru.yml index 446019780..52a40cc51 100644 --- a/config/locales/models/project.ru.yml +++ b/config/locales/models/project.ru.yml @@ -3,6 +3,7 @@ ru: projects: branches: Ветки delete_branch: Удалить ветку + restore_branch: Востановить ветку total_branches: Всего %{count} веток total_branch: Всего 1 ветка no_branch: Нет веток diff --git a/lib/modules/models/git.rb b/lib/modules/models/git.rb index 735455158..a9f23833d 100644 --- a/lib/modules/models/git.rb +++ b/lib/modules/models/git.rb @@ -34,7 +34,7 @@ module Modules end def restore_branch(branch, sha) - repo.git.native(:branch, {}, 'branch', branch, sha) + repo.git.native(:branch, {}, branch, sha) end def delete_branch(branch, user)