]> git.proxmox.com Git - libgit2.git/commit - src/odb_loose.c
odb: ignore files in the objects dir
authorCarlos Martín Nieto <cmn@dwim.me>
Mon, 5 May 2014 14:04:14 +0000 (16:04 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Mon, 5 May 2014 14:34:18 +0000 (16:34 +0200)
commitee311907ee0299ff2c1d7fc37699dc3e4da20c52
treecd26f69937032be089e836f9c35e55ed7df7feea
parentd2c16e9ac4921e94eb5db972e6b8452d71a623fc
odb: ignore files in the objects dir

We assume that everything under GIT_DIR/objects/ is a directory. This is
not necessarily the case if some process left a stray file in there.

Check beforehand if we do have a directory and ignore the entry
otherwise.
src/odb_loose.c
tests/odb/foreach.c