Do not deploy when GIT_NAME is not defined.

This should stop deployment when Travis is run on forks.

Ok. Why GIT_NAME is not set too then?

The code you submitted doesn't make much sense as you changed an assignment. In C++ it would look like:

a = 10 || b = 20

And b = 20 will never be executed as a = 10 is always true. Plus you only changed the tests and not the code (or at least the pull request only contains changes in the test).

What case will GIT_NAME be empty and TRAVIS_PULL_REQUEST != 10 ?