The command to checkout wormhole from GitHub results in the following output (run manually here)
~/wormhole-scaffolding/solana/dependencies$ git clone --depth 1 --branch main --filter=blob:none --sparse https://github.com/wormhole-foundation/wormhole tmp-wormhole
Cloning into 'tmp-wormhole'...
fatal: cannot change to 'https://github.com/wormhole-foundation/wormhole': No such file or directory
error: failed to initialize sparse-checkout
The command to checkout wormhole from GitHub results in the following output (run manually here)
This appears to be a bug related to the
--sparse
flag fixed with this commit in git core: https://github.com/git/git/commit/47dbf10d8a5ce8c9b441a16b7698c7d70585dff0Ubuntu 20.04 default package manage only provides up to git v2.25.1 so an alternate PPA must be used to install a later version which does work.
What do? Omit
--sparse
if we find git --version <= 2.25.1? Give a better error message?