Comment 6 for bug 1796218

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 1796218] Re: brz info: KeyError in git repository

On Fri, Oct 05, 2018 at 01:16:38PM -0000, Aaron Bentley wrote:
> It is a git-lfs-enabled repo, but I tested with a different git-lfs-
> enabled repo and that one worked fine.
> .git is a directory.
> $ ls .git/objects/info
> packs
Ah, okay - that explains it.

"git update-server-info" was run in this repository at some point, but
not recently.

Breezy incorrectly checks the .git/objects/info/packs file *before*
attempting to just call os.listdir('git/objects/packs'). It should be
the other way around.