Re: [PATCH yocto-autobuilder-helper] run-docs-build: fix checkout of releases.rst from master
Michael Opdenacker
Hi Quentin,
Thank you very much for the review. On 1/26/22 09:11, Quentin Schulz wrote: Hi Michael, Well, here, the two should go together. I admit my description is probably misleading. My initial "git checkout" was wrong (wrong path), so wasn't doing anything. Now that "git checkout" works as expected, I need a way to clean the branch after the docs are generated. Otherwise, I'll switch branches in the rest of the script from an unclean state. Signed-off-by: Michael Opdenacker <michael.opdenacker@...>This should be done right after the git checkout. It's better to ensure what you build is clean that try to ensure the next oneto build has a clean env. Especially since checkouts can dirty the git repo I think (I've had this issue multiple times when switching between kernel branches far enough from one another). My point was just to undo the "git checkout" to fetch releases.txt from "master", not to be a substitute for "make clean". I can't do it right after "git checkout" otherwise I'm not doing anything at all. You have a valid point about a possible "dirty" git version though. Fortunately, I checked and it seems that uncommitted changes have no impact on the generated docs. I couldn't find any git commit anywhere. Thanks Michael. -- Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
|
|