only set git config if they are variables are set