今天试用git submodule, 出现了错误
fatal: Needed a single revision解决方法如下:
http://www.gostai.com/downloads/urbi-sdk-2.0/doc/urbi-sdk.htmldir/faq.html#x22-10400014.1.4
14.1.4 git: fatal: Needed a single revision
You may experience something like this:
$ git submodule update --init fatal: Needed a single revision Unable to find current revision in submodule path ’gnulib’
this is the sign that the initial checkout of ‘gnulib’ went completely wrong (I don’t know what makes this happen). Chances are that the directory exists, but is empty. Git does not seem to be able to overcome this situation, so: