--- batch-transvalidate 2013-08-30 14:25:17.069069499 +0200 +++ batch-transvalidate-1 2013-08-30 14:02:47.775987862 +0200 @@ -567,4 +567,26 @@ fi done < ../valid-list + + # [Git only] Commit the POs to the local repo. + if [ -d .git ]; then + git add . + if [ "$(git diff --name-only --staged)" ]; then + [ -z "$message" ] && select_message + if [ -z "$message" ]; then + git commit || git_exit_code=$? + else + git commit -m "$message" || git_exit_code=$? + fi + if [ -n "$git_exit_code" ]; then # Addition to the Git error message: + echo "*** ... but the POs seem OK." + else + echo -e "\n*** Changes to branch $branch have been committed." + fi + fi + else + echo -e "\n*** One or more of the POs need fixing. + Your changes stay in the staging area for the time being." + fi + else echo -e "\n*** Sorry, I can't find any PO to work on. @@ -581,26 +603,4 @@ if [ "$final_exit_code" = "0" ]; then - - # [Git only] Commit the POs to the local repo. - if [ -d .git ]; then - git add . - if [ "$(git diff --name-only --staged)" ]; then - [ -z "$message" ] && select_message - if [ -z "$message" ]; then - git commit || git_exit_code=$? - else - git commit -m "$message" || git_exit_code=$? - fi - if [ -n "$git_exit_code" ]; then # Addition to the Git error message: - echo "*** ... but the POs seem OK." - else - echo -e "\n*** Changes to branch $branch have been committed." - fi - fi - else - echo -e "\n*** One or more of the POs need fixing. - Your changes stay in the staging area for the time being." - fi - # Remove GNUN's report because it has become obsolete. rm -f ../gnun-report.txt