REST: fixed optional username/pwd problem when creating git repo