#git #tfs #git-tfs
#git #tfs #git-tfs
Вопрос:
Когда я пытаюсь отложить свои изменения из 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 DOMAINNAMEDisplay Name is not a recognized identity. ---> System.Web.Services.Protocols.SoapException: TF14045: The identity DOMAINNAMEDisplay Name is not a recognized identity.
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ProcessHttpResponse(HttpWebResponse response, Stream responseStream, WebException webException, XmlReaderamp; xmlResponseReader)
at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ExecWebServiceRequest(HttpWebRequest request, XmlWriter requestXml, String methodName, HttpWebResponseamp; 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:workgit-tfsGitTfsCoreGitTfsRemote.cs:line 432
at Sep.Git.Tfs.Commands.Shelve.<>c__DisplayClass1.<Run>b__0(TfsChangesetInfo changeset) in D:workgit-tfsGitTfsCommandsShelve.cs:line 49
at Sep.Git.Tfs.Core.TfsWriter.Write(String refToWrite, Func`2 write) in D:workgit-tfsGitTfsCoreTfsWriter.cs:line 29
at Sep.Git.Tfs.Commands.Shelve.Run(String shelvesetName, String refToShelve) in D:workgit-tfsGitTfsCommandsShelve.cs:line 47
at Sep.Git.Tfs.Commands.Shelve.Run(String shelvesetName) in D:workgit-tfsGitTfsCommandsShelve.cs:line 42
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStructamp; 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:workgit-tfsGitTfsUtilGitTfsCommandRunner.cs:line 36
at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs) in D:workgit-tfsGitTfsGitTfs.cs:line 56
at Sep.Git.Tfs.GitTfs.Run(IList`1 args) in D:workgit-tfsGitTfsGitTfs.cs:line 39
at Sep.Git.Tfs.Program.Main(String[] args) in D:workgit-tfsGitTfsProgram.cs:line 23
TF14045: The identity DOMAINNAMEDisplay Name is not a recognized identity.
TF14045: The identity DOMAINNAMEDisplay Name is not a recognized identity.
Ответ №1:
Это известный дефект. Если вы получите последний код git-tfs и соберете его, эта проблема будет исправлена.
Вот комментарий к сообщению об ошибке, который имеет отношение к делу: https://github.com/spraints/git-tfs/issues/81#issuecomment-1979918
Обновить
Это было исправлено в последнем двоичном обновлении 0.12.1
Комментарии:
1. Спасибо. Я полностью пропустил эту проблему.