git submodule update --init返回空白

时间:2016-03-10 21:25:20

标签: git bash minecraft

我遵循了两套指示:
https://www.spigotmc.org/wiki/cloning-building-and-compiling-the-spigot-source/
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/browse/README.md

但我的问题出现在这一行之后:

git submodule update --init

根据说明,在我运行上述命令后,我需要“等待它完成下载”,除了没有下载。它只是在按Enter键后立即返回,完全没有消息。

我搜索了一些关于“git submodule update --init”如何返回空白,但我似乎无法将这些知识应用于我的情况。

这是我的终端输出:

minecraft@localhost:~/testserver$ git clone https://hub.spigotmc.org/stash/scm/spigot/spigot.git
Cloning into 'spigot'...
remote: Counting objects: 14823, done.
remote: Compressing objects: 100% (5480/5480), done.
remote: Total 14823 (delta 12828), reused 11073 (delta 9328)
Receiving objects: 100% (14823/14823), 2.97 MiB | 0 bytes/s, done.
Resolving deltas: 100% (12828/12828), done.
Checking connectivity... done.

minecraft@localhost:~/testserver$ cd spigot/

minecraft@localhost:~/testserver/spigot$ git submodule update --init

minecraft@localhost:~/testserver/spigot$ ./applyPatches.sh
Rebuilding Forked projects....
./applyPatches.sh: line 40: cd: ../Bukkit: No such file or directory
./applyPatches.sh: line 11: cd: /home/minecraft/testserver/spigot/Bukkit: No such file or directory
fatal: ambiguous argument 'origin/spigot': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: repository 'Bukkit' does not exist
./applyPatches.sh: line 20: cd: /home/minecraft/testserver/spigot/Spigot-API: No such file or directory
Resetting Spigot-API to Bukkit...
error: Could not remove config section 'remote.upstream'
fatal: ambiguous argument 'upstream/upstream': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
  Applying patches to Spigot-API...
Resolve operation not in progress, we are not resuming.
Applying: POM Changes
fatal: sha1 information is lacking or useless (pom.xml).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 POM Changes
The copy of the patch that failed is found in:
   /home/minecraft/testserver/spigot/.git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
  Something did not apply cleanly to Spigot-API.
  Please review above details and finish the apply then
  save the changes with rebuildPatches.sh

0 个答案:

没有答案