Git tfs clone-服务器无法处理请求。 --->生成XML文档时出错。 --->指定的类型转换无效

问题描述 投票:0回答:1

我正在尝试使用git tfs clone命令将tfs迁移到git:

git tfs clone https://locahost/collection $/"Test project/feature-branch"

收到错误:

2019-10-31 12:39:56.8412 [调试]System.Reflection.TargetInvocationException:引发了异常通过调用的目标。 ->System.Web.Services.Protocols.SoapException:服务器无法处理要求。 --->生成XML文档时出错。--->指定的强制转换无效。在Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.LoadWorkItem(Int32id,Int32转,可为空1 asof, IWorkItemRowSets& witem) at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem..ctor(WorkItemStore store, Uri uri) at Microsoft.TeamFoundation.VersionControl.Client.Changeset.get_WorkItems() at GitTfs.VsCommon.TfsHelperBase.BuildTfsChangeset(Changeset changeset, IGitTfsRemote remote) at GitTfs.VsCommon.TfsHelperBase.<GetChangesets>d__46.MoveNext() at GitTfs.Core.GitTfsRemote.FetchWithMerge(Int32 mergeChangesetId, Boolean stopOnFailMergeCommit, Int32 lastChangesetIdToFetch, IRenameResult renameResult, String[] parentCommitsHashes) at GitTfs.Core.GitTfsRemote.Fetch(Boolean stopOnFailMergeCommit, Int32 lastChangesetIdToFetch, IRenameResult renameResult) at GitTfs.Commands.Fetch.DoFetch(IGitTfsRemote remote, Boolean stopOnFailMergeCommit) at GitTfs.Commands.Fetch.FetchRemote(Boolean stopOnFailMergeCommit, IGitTfsRemote remote) at GitTfs.Commands.Fetch.Run(Boolean stopOnFailMergeCommit, String[] args) at GitTfs.Commands.Fetch.Run() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at GitTfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList 1args)位于GitTfs.GitTfs.Main(GitTfsCommand命令,IList1 unparsedArgs) at GitTfs.GitTfs.Run(IList1 args)位于GitTfs.Program.Main(String [] args)

tfs azure-devops tfvc git-tfs
1个回答
1
投票

似乎您有错字:

$/"Test project/feature-branch"

您应将整个源代码管理路径用引号引起来:"$/Test project/feature-branch"

© www.soinside.com 2019 - 2024. All rights reserved.