Use git commands instead of env vars for Travis