当我尝试使用命令搁置 git-tfs 中的更改时git tfs shelve MY_SHELVE_NAME
,我收到以下错误:
TF14045 The identity {my domain}\{my windows user display name} is not a recognized identity.
看起来 git tfs 传递的是我的显示名称而不是我的用户名。它尝试将本地配置值 tfs-remote.default.username 和 tfs-remote.username 设置为我的 Windows 用户名,但这不起作用。我使用了错误的配置值还是其他错误?
的输出git tfs shelve MY_SHELVE_NAME -d
git command: Starting process: git log --no-color --pretty=medium HEAD
git command: Starting process: git config --list
git command time: [00:00:00.1340134] config --list
git command time: [00:00:00.1700170] log --no-color --pretty=medium HEAD
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.TeamFoundation.VersionControl.Client.IdentityNotFoundException: TF14045: The identity DOMAINNAME\Display Name is not a recognized identity. ---> System.Web.Services.Protocols.SoapException: TF14045: The identity DOMAINNAME\Display Name is not a recognized identity.
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ProcessHttpResponse(HttpWebResponse response, Stream responseStream, WebException webException, XmlReader& xmlResponseReader)
at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ExecWebServiceRequest(HttpWebRequest request, XmlWriter requestXml, String methodName, HttpWebResponse& response)
at Microsoft.TeamFoundation.VersionControl.Client.Repository.QueryShelvesets(String shelvesetName, String ownerName)
at Sep.Git.Tfs.VsCommon.TfsHelperBase.HasShelveset(String shelvesetName)
at Sep.Git.Tfs.Core.GitTfsRemote.HasShelveset(String shelvesetName) in D:\work\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 432
at Sep.Git.Tfs.Commands.Shelve.<>c__DisplayClass1.<Run>b__0(TfsChangesetInfo changeset) in D:\work\git-tfs\GitTfs\Commands\Shelve.cs:line 49
at Sep.Git.Tfs.Core.TfsWriter.Write(String refToWrite, Func`2 write) in D:\work\git-tfs\GitTfs\Core\TfsWriter.cs:line 29
at Sep.Git.Tfs.Commands.Shelve.Run(String shelvesetName, String refToShelve) in D:\work\git-tfs\GitTfs\Commands\Shelve.cs:line 47
at Sep.Git.Tfs.Commands.Shelve.Run(String shelvesetName) in D:\work\git-tfs\GitTfs\Commands\Shelve.cs:line 42
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Sep.Git.Tfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList`1 args) in D:\work\git-tfs\GitTfs\Util\GitTfsCommandRunner.cs:line 36
at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs) in D:\work\git-tfs\GitTfs\GitTfs.cs:line 56
at Sep.Git.Tfs.GitTfs.Run(IList`1 args) in D:\work\git-tfs\GitTfs\GitTfs.cs:line 39
at Sep.Git.Tfs.Program.Main(String[] args) in D:\work\git-tfs\GitTfs\Program.cs:line 23
TF14045: The identity DOMAINNAME\Display Name is not a recognized identity.
TF14045: The identity DOMAINNAME\Display Name is not a recognized identity.