2

我有 2 个存储库:gs-webui-test-beansselenium-drivers.

selenium-drivers是 中的一个子模块gs-webui-test-beans

克隆后该文件chromedriver_linux64_2.1/chromedriver应在 Linux 上可执行。

当我克隆selenium-drivers它确实是可执行的。

当我这样做git clone --recursive时,gs-webui-test-beans 我再次检查该文件,发现它不可执行。

我究竟做错了什么?

4

1 回答 1

1

You need to init the submodules. Either do

git submodule update --init --recursive

after the clone, or specify the --recurse-submodules option for git clone.

--recurse-submodules

After the clone is created, initialize all submodules within, using their default settings. This is equivalent to running git submodule update --init --recursive immediately after the clone is finished. This option is ignored if the cloned repository does not have a worktree/checkout (i.e. if any of --no-checkout/-n, --bare, or --mirror is given)

于 2013-08-01T08:24:09.317 回答