无法克隆存储库 ( "Operation not permitted: <workspace_folder>/<project_name>/.hg/requires" )



提前对不起我的英语不好...
我正在尝试在 Ubuntu.
上使用 Eclipse 克隆一个 hg 存储库我总是有以下错误消息,当我执行"hg clone"命令时完全相同:

"Operation not permitted: <workspace_folder>/<project_name>/.hg/requires"

以下是/.hg 内容:

ls -al .hg/
total 40K
drwxrwxr-x 4 www-data web 4.0K Apr 18 09:33 .
drwxrwxr-x 3 www-data svn 4.0K Mar  5 17:52 ..
-rwxrwxr-x 1 www-data web   57 Mar  5 17:48 00changelog.i
drwxrwxr-x 2 www-data web 4.0K Apr 18 09:33 cache
-rwxrwxr-x 1 www-data web   40 Mar  5 17:51 dirstate
-rwxrwxrwx 1 www-data web   40 Apr 18 21:45 requires
drwxrwxr-x 3 www-data web 4.0K Apr 18 09:33 store
-rw-rw-r-- 1 nico     web    0 Apr 18 09:33 undo.bookmarks
-rw-rw-r-- 1 nico     web    7 Apr 18 09:33 undo.branch
-rw-rw-r-- 1 nico     web   38 Apr 18 09:33 undo.desc
-rw-rw-r-- 1 nico     web   40 Apr 18 09:33 undo.dirstate

这是/.hg/require 文件内容:

revlogv1
store
fncache
dotencode

这是 hg 克隆命令的输出:

running ssh nico@www.there.com "hg -R /var/dev/projects/my_hg_project serve --stdio"
sending hello command
sending between command
nico@www.there.com's password:
remote: 145
remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
remote: 1
destination directory: my_hg_project
abandon : Operation not permitted : /media/data/workspaces/my_workspace/my_hg_project/.hg/requires

我尝试了很多东西,例如chmod和chown...我不是 Linux 专家,所以我用谷歌搜索了我的错误消息,但结果并不多。有人对此有想法吗?

提前非常感谢

您考虑文件权限是对的,因为这是根本原因,但我有点困惑。 您是否在服务器上显示文件权限,但在工作站上看到该消息? 您究竟要从哪里克隆? 您是通过 http 还是 ssh 进行克隆? 您以哪个用户的身份运行克隆命令?

最新更新