Git Submodule致命参考不是树

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

嗨,我得到fatal: reference is not a tree: 947a3c67349eb242a8d46d576e544f8129b28cbf Unable to checkout '947a3c67349eb242a8d46d576e544f8129b28cbf' in submodule path 'modules/webform'

我的工作站如下:

[root]:
   .gitmodules
   /modules/webform

里面.gitmodules我有:

[submodule "modules/webform"]
        path = modules/webform
        url = https://git.drupal.org/project/webform.git

我已经进入模块/ webform和git pull我也有git submodule sync,它给了我Synchronizing submodule url for 'modules/webform'。我甚至硬重置该目录。我想知道是否有办法删除该引用/重置到最新版本?当我git log它给我的参考是一个bad object

git-submodules git-subtree
1个回答
1
投票

我不得不更新我的git --version。我在1.7,最新是2.1或者其他什么。

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