Make propose_translation_update more robust
If there're no translations at all, the locale directory is empty but we try to add content and that fails like: + git add 'ironic_ui/locale/*' | fatal: pathspec 'ironic_ui/locale/*' did not match any files Do not use a wildcard, just add the directory. That way the git command and will not fail - and the rest of the script works fine. Change-Id: I2a67b692f437a1bced9507e66cce217765d5d913
This commit is contained in:
@@ -99,7 +99,7 @@ function propose_python {
|
|||||||
|
|
||||||
# Some files were changed, add changed files again to git, so that we
|
# Some files were changed, add changed files again to git, so that we
|
||||||
# can run git diff properly.
|
# can run git diff properly.
|
||||||
git add $modulename/locale/*
|
git add $modulename/locale/
|
||||||
}
|
}
|
||||||
|
|
||||||
function propose_horizon {
|
function propose_horizon {
|
||||||
@@ -116,7 +116,7 @@ function propose_horizon {
|
|||||||
compress_po_files "openstack_dashboard"
|
compress_po_files "openstack_dashboard"
|
||||||
|
|
||||||
# Add all changed files to git
|
# Add all changed files to git
|
||||||
git add horizon/locale/* openstack_dashboard/locale/*
|
git add horizon/locale/ openstack_dashboard/locale/
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function can be used for all django projects
|
# This function can be used for all django projects
|
||||||
@@ -133,7 +133,7 @@ function propose_django {
|
|||||||
compress_po_files "$modulename"
|
compress_po_files "$modulename"
|
||||||
|
|
||||||
# Add all changed files to git
|
# Add all changed files to git
|
||||||
git add $modulename/locale/*
|
git add $modulename/locale/
|
||||||
}
|
}
|
||||||
|
|
||||||
# Setup git repository for git review.
|
# Setup git repository for git review.
|
||||||
|
Reference in New Issue
Block a user