Git-Tfs在搁置期间向tfs发送错误的身份

时间:2011-11-04 01:01:23

标签: git tfs git-tfs

当我尝试使用命令git tfs shelve MY_SHELVE_NAME从git-tfs搁置我的更改时,出现以下错误:

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.

1 个答案:

答案 0 :(得分:2)

这是一个已知的缺陷。如果您获得latest git-tfs code并构建它,则会解决此问题。

以下是相关的错误报告评论: https://github.com/spraints/git-tfs/issues/81#issuecomment-1979918

<强>更新

这是在最新的二进制drop 0.12.1

中修复的