I run it command:
git clone --depth 1 --recursive https://github.com/gohugoio/hugoThemes.git themes
and get it:
Could not execute recursively for the sub-module along the path "hugo-changelog-theme"
How it make true?
Try:
git clone --recurse-submodules -j8 https://github.com/gohugoio/hugoThemes.git
still the same mistake
Hello @man2012,
themes are added as Git submodules which are basically a reference to a commit in a third-party repository (the hugo theme). It can happen that the references break due to changes in the theme repositories over which we have no control.
Hence I've updated all references. Please let me know if this resolves your issue.
Hello @man2012,
themes are added as Git submodules which are basically a reference to a commit in a third-party repository (the hugo theme). It can happen that the references break due to changes in the theme repositories over which we have no control.
Hence I've updated all references. Please let me know if this resolves your issue.
Hello. Problem still exists
Can you delete the template so that this command works?
Can you delete the template so that this command works?
@man2012
If you are referring to the GitHub Issue template I'm afraid that it is not possible to delete it.
Also I ran myself the command: git clone --depth 1 --recursive https://github.com/gohugoio/hugoThemes.git and it didn't fail on my end at the hugo-changelog-theme submodule as you report.
Cloning into '/home/alex/Desktop/New/hugoThemes/hugo-changelog-theme'...
remote: Enumerating objects: 180, done.
remote: Counting objects: 100% (180/180), done.
remote: Compressing objects: 100% (114/114), done.
remote: Total 180 (delta 63), reused 162 (delta 45), pack-reused 0
Receiving objects: 100% (180/180), 248.14 KiB | 382.00 KiB/s, done.
Resolving deltas: 100% (63/63), done.
@digitalcraftsman I think that this issue needs to be closed.
Please don't close the issue.
I have the same problem, same theme (hugo-changelog-theme). I think the theme should be removed until the cause is identified and the author notified (@jsnjack please be advised, any ideas?), or a git workaround suggested (see below for one possiblity).
It stops the entire process, so later themes cannot be downloaded as part of the process. Of course, there is a possibility it isn't just that theme and it then occurs at some point later in the process.
Appears to be permission related, and possibly actually connecting to the spectre dependency of hugo-changelog-theme:
Permission denied (publickey).
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:picturepan2/spectre.git' into submodule path 'as
sets/spectre' failed
Failed to recurse into submodule path 'hugo-changelog-theme'
In the meantime @man2012 , the following hack seems to have worked for me (it's currently downloading other submodules).
HTH
@ldbiz - This command works fine for me:
git clone --depth 1 --recursive https://github.com/gohugoio/hugoThemes.git
Relevant output:
Cloning into '/Users/zwbetz/Development/Sites/hugoThemes/hugo-changelog-theme'...
remote: Enumerating objects: 233, done.
remote: Total 233 (delta 0), reused 0 (delta 0), pack-reused 233
Receiving objects: 100% (233/233), 251.88 KiB | 1.91 MiB/s, done.
Resolving deltas: 100% (94/94), done.
Edit: Scratch the above. I now see this output towards the end:
Submodule path 'hugo-changelog-theme': checked out 'e1cb872bc0f994acc2718c04d8e34de9411d831f'
Submodule 'assets/spectre' ([email protected]:picturepan2/spectre.git) registered for path 'hugo-changelog-theme/assets/spectre'
Cloning into '/Users/zwbetz/Development/Sites/hugoThemes/hugo-changelog-theme/assets/spectre'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:picturepan2/spectre.git' into submodule path '/Users/zwbetz/Development/Sites/hugoThemes/hugo-changelog-theme/assets/spectre' failed
Failed to clone 'assets/spectre'. Retry scheduled
Cloning into '/Users/zwbetz/Development/Sites/hugoThemes/hugo-changelog-theme/assets/spectre'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:picturepan2/spectre.git' into submodule path '/Users/zwbetz/Development/Sites/hugoThemes/hugo-changelog-theme/assets/spectre' failed
Failed to clone 'assets/spectre' a second time, aborting
Edit 2: This error is likely due to how the spectre submodule is added. It is added via SSH, but it should be added via HTTPS.
https://github.com/jsnjack/hugo-changelog-theme/blob/master/.gitmodules
@jsnjack - Please see above notes. Thank you.
@zwbetz-gh, thanks for confirmation and clarification.
Submodule is added via HTTPS. Thanks guys :)
Note that this change will not be picked up until the hugoThemes repo is updated again
I've updated the themes and cloned this repository some interruptions occur. This was not the case. Hence I would close this issue if none of you still has some problems related to this issue.
@digitalcraftsman - I no longer get that spectre submodule issue on my end. Output is clean now.
Submodule path 'hugo-changelog-theme': checked out '6696924a9918e6564e7294486595823ede85aa97'
Submodule 'assets/spectre' (https://github.com/picturepan2/spectre.git) registered for path 'hugo-changelog-theme/assets/spectre'
Cloning into '/Users/zwbetz/Development/Sites/hugoThemes/hugo-changelog-theme/assets/spectre'...
remote: Enumerating objects: 93, done.
remote: Counting objects: 100% (93/93), done.
remote: Compressing objects: 100% (81/81), done.
remote: Total 7660 (delta 70), reused 24 (delta 12), pack-reused 7567
Receiving objects: 100% (7660/7660), 6.05 MiB | 5.68 MiB/s, done.
Resolving deltas: 100% (5791/5791), done.
Most helpful comment
Submodule is added via HTTPS. Thanks guys :)