我使用ac2git工具将我的accurev仓库整合到git存储库中。 我在运行命令python ac2时遇到以下错误吉特.py按照指示完成必要的步骤之后。
2016-08-29 09:54:14,058 - ac2git - ERROR - The script has encountered an exception, aborting!
Traceback (most recent call last):
File "ac2git.py", line 3596, in AccuRev2GitMain
rv = state.Start(isRestart=args.restart, isSoftRestart=args.softRestart)
File "ac2git.py", line 2974, in Start
self.RetrieveStreams()
File "ac2git.py", line 1556, in RetrieveStreams
tr, commitHash = self.RetrieveStream(depot=depot, stream=streamInfo,dataRef=dataRef, stateRef=stateRef, hwmRef=hwmRef, startTransaction=self.config.accurev.startTransaction, endTransaction=endTr.id)
File "ac2git.py", line 1511, in RetrieveStream
dataTr, dataHash = self.RetrieveStreamData(stream=stream, dataRef=dataRef,stateRef=stateRef)
File "ac2git.py", line 1394, in RetrieveStreamData
commitHash = self.Commit(transaction=tr, allowEmptyCommit=True,messageOverride="transaction {trId}".format(trId=tr.id), parents=[], ref=dataRef)
File "ac2git.py", line 670, in Commit
self.PreserveEmptyDirs()
File "ac2git.py", line 440, in PreserveEmptyDirs
if git.GetGitDirPrefix(path) is None and len(os.listdir(path)) == 0:
FileNotFoundError: [WinError 3] The system cannot find the path specified:'C:///Users/*****/*****/app/node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list'
这个错误非常模糊,我似乎找不到任何关于这个工具的文档可以帮助解决这个错误。以前有人遇到过这个问题吗?
我不熟悉您使用的工具,但您提供的输出摘要中的最后一行似乎提供了最好的信息:
该路径的格式可能不正确,其中包含在文件系统中无效的额外斜杠和目录名。另外,文件路径在输出中为227个字符,如果“Users”和“app”之间的目录名足够长,那么在Windows中可能会达到256个字符的路径名限制。在
相关问题 更多 >
编程相关推荐