KataGo
KataGo copied to clipboard
Why does this error occur
++ git rev-parse --show-toplevel fatal: not a git repository (or any of the parent directories): .git
- GITROOTDIR=
Normally KataGo expects you to compile it from a git clone of the repository here from Github. The training scripts also currently expect to be run from within the repo, and one of the first things some of them do is call git rev-parse --show-toplevel so that they can locate the top of the repository so that they know what paths to copy to make a snapshot of themselves and other files they depend on. Those scripts normally run everything using the snapshot, so if the original repo changes in the middle of the run, nothing breaks, it keeps using the same versions of everything as when the script was first started.
Actually I think some of the scripts still don't do this, they only copy out a snapshot purely for future logging purposes (you can see the version of the code at the time they were launched), but don't run things from the snapshot. I should fix that, there's no reason not to make all of the scripts that do long-running loops robust to the repo changing underneath them.
Edit: Actually I think we're good here. All the training-related scripts that loop persistently I think do this as far as I can see.