我决定尝试一些Pharo并找到https://www.peteruhnak.com/blog/2016/07/25/how-to-use-git-and-github-with-pharo/。Pharo GitFileTree SubscriptOutOfBounds添加存储库时
然而,当我试图按照步骤添加存储库,我得到一个错误,每当我试图做到以下几点:
A file dialog will appear (left new File Dialog, right old Morphic File Dialog). Note that you should navigate into the target directory, so in both images you have to go one level deeper into the
repository
directory.
我有一个地方(从GitHub克隆)的git下库~/development/Pharo/PharoGitTest/
它看起来像这样:
.git
repository # folder
(empty)
.gitignore
LICENSE
README.md
test.md
这没有什么区别,当我浏览到PharoGitTest
一个或PharoGitTest/repository
,在这两种情况下,我无法通过单击OK
添加存储库菲罗:
我得到的错误:
基本上一些阵列似乎是空的,但预计将有至少1项:
的堆栈帧的代码中显示的git
命令的结果来自堆栈跟踪的顶部(见下面的截图)
是:
[12:38:37]:[~/development/Pharo/PharoGitTest]: git rev-parse --is-inside-work-tree
true
和repository
子文件夹内:
[12:39:22]:[~/development/Pharo/PharoGitTest/repository]: git rev-parse --is-inside-work-tree
true
看来东西在破稳定版本的GitFileTree或我遵循的指南是错误的。 我该如何解决这个问题?我在Github上看到过其他Pharo或Smalltalk项目,但我还找不到合适的地方,将其作为GitFileTree的一个问题发布。也许这也不是,我在这里做错了事。
附加信息
- 我菲罗的版本是:
pharo6.1-64
,上Xubuntu 16.04.3
运行。 - 我的git版本是:
git version 2.7.4
。
您使用的是哪个版本的Pharo? –
@MaxLeske哦对,我应该已经添加了这个信息!我将它添加到帖子中! – Zelphir
@Zelphir isGitRepository中git命令的结果是什么:(在堆栈中,从顶部开始第四个) –