Commit a8097380 authored by Mark Chao's avatar Mark Chao

Merge branch 'use_system_for_gettext_git_command' into 'master'

Fix issue with gettext:regenerate not cleaning up locale changes

See merge request gitlab-org/gitlab!41473
parents 01b3a49d 01cb0edd
......@@ -38,7 +38,9 @@ namespace :gettext do
Rake::Task['gettext:find'].invoke
# leave only the required changes.
`git checkout -- locale/*/gitlab.po`
unless system(*%w(git checkout -- locale/*/gitlab.po))
raise 'failed to cleanup generated locale/*/gitlab.po files'
end
# Remove timestamps from the pot file
pot_content = File.read pot_file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment