GIT_URL variable corruption in script