2017-05-25 95 views
1

我正在安装geomapfish。在.gitmodules中找不到路径'paquete/static/lib/cgxp'中的子模块映射

我在这一步。

https://camptocamp.github.io/c2cgeoportal/master/integrator/install_application.html#apache-wsgi-conf-mako 

Then you can build and install the application with the command: 

$ make -f <user>.mk build 

但在我来说,我有这样的埃罗:

git submodule update --init 
No submodule mapping found in .gitmodules for path 'paquete/static/lib/cgxp' 
CONST_Makefile:1030: recipe for target '.git/modules/proyecto1/static/lib/cgxp/HEAD' failed 
make: *** [.git/modules/proyecto1/static/lib/cgxp/HEAD] Error 1 

我读这post

并尝试遵循它,但我不知道是什么问题。

如果键入:

...# git ls-files --stage | grep 160000 

这是命令行说:

160000 e1097abee85078e0de1f8e0a4d5269e6a7a9f72f 0 cgxp 
160000 7437277b10fbf23206ed75fd6d0924b61d6153be 0 cgxp2 
160000 7437277b10fbf23206ed75fd6d0924b61d6153be 0 paquete/static/lib/cgxp 

我想我只需要其中的一个。

任何帮助我?

回答

0

我以前的答案是关于从索引中删除该条目,因为.gitmodules没有引用它。

git rm --cached paquete/static/lib/cgxp 

但检查.gitmodules的内容,看看是否应该有一个“cgxp”回购。

如果你发现它的网址,你可以将其添加回来:

git submodule add -- /url/of/cgxp paquete/static/lib/cgxp 
+0

谢谢,但它并没有为我工作。 –

+0

@Iván你会得到什么?什么“不起作用”是指?你的.gitmodules包含了什么。 – VonC

+0

I型的git RM PAQUETE /静态/ LIB/cgxp和它说: 错误:以下子模块(或它的子模块嵌套中的一个) 使用.git目录: PAQUETE /静态/ LIB/cgxp (使用“RM -rf',如果你真的想删除它,包括它的所有历史记录) –

相关问题