manifestcache: only lock the repository if the debug command touch the cache
Not doing so had two consequences: 1) the command cannot be run on read only repositories, 2) when using --add on an empty cache, the command crash prematurely trying to read the cache file on disk.
Please register or sign in to comment