completion: use git rev-parse to detect bare repos