Appears to be caused by the commit "Fix repository discovery with ceiling_dirs at current directory" https://github.com/libgit2/libgit2/commit/a200dc9e1d35d44aabda468966933f34dc... (I've bisected and then created a reversion patch)
May well be a libgit2 issue but I can only test with git-changebar.