git-p4: fix problem when p4 login is not necessary