Fixed the condition to check GIT_EXIT_CODE variable.