ReadTheDocs build fails due to pathspec

你离开我真会死。 提交于 2021-01-07 02:36:46

问题


I'm trying to set up a sphinx documentation and put it online using ReadTheDocs, however following the steps of the tutorial I end up by having the following error pop in my build:

Read the Docs build information
Build id: 12647743
Project: documentationseries
Version: latest
Commit: None
Date: 2020-12-28T11:42:02.102474Z
State: finished
Success: False


[rtd-command-info] start-time: 2020-12-28T11:43:48.024647Z, end-time: 2020-12-28T11:43:48.412733Z, duration: 0, exit-code: 0
git clone --no-single-branch --depth 50 https://github.com/guilhermetheis/documentationSeries.git .
Cloning into '.'...

[rtd-command-info] start-time: 2020-12-28T11:43:48.872904Z, end-time: 2020-12-28T11:43:48.949867Z, duration: 0, exit-code: 1
git checkout --force master
error: pathspec 'master' did not match any file(s) known to git.

I've added the .readthedocs.yml as well. I had a gitignore that set the build/ to be ignored, but this was removed as to my understanding the build folder contains the HTML code necessary. I haven't change anything on the rst side of the things yet. The idea was to make it go online and then add to remove any layer of complexity in the debugging. I really don't understand why this is happening (and I am quite new/bad on programming) so I kindly ask for in depth explanations if possible.

The repository can be found here


回答1:


The repo doesn't have a master branch so you obviously cannot check it out, --force or no --force.

The repo instead uses main as the name of the only branch, as you can easily discover by visiting the link you provided yourself.

(This is part of a grand renaming; many projects used master in the past but have now started migrating to a different terminology. See also Difference Between Main Branch and Master Branch in Github?)



来源:https://stackoverflow.com/questions/65477179/readthedocs-build-fails-due-to-pathspec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!