Repository.CreateCommit: Only allocate CStr on non-empty refname