+3
−6
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Creating an empty bare manifests.git caused repo to fail with 'Cannot initialize work tree for manifests' since the empty repo has no commits or branches to sync against. The manifests.git check as the condition is sufficient: it ensures cp -R runs on stale .repo/ directories (left with only TRACE_FILE from failed runs), giving _FindRepo() a local repo/main.py to find. repo init then creates manifests.git fresh from the kernel manifest URL on first run, and the check skips setup on all subsequent runs.