diff options
Diffstat (limited to 'src/odb_loose.c')
-rw-r--r-- | src/odb_loose.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/odb_loose.c b/src/odb_loose.c index 7b46a6652..b2e8bed4d 100644 --- a/src/odb_loose.c +++ b/src/odb_loose.c @@ -755,6 +755,10 @@ static int foreach_cb(void *_state, git_buf *path) { struct foreach_state *state = (struct foreach_state *) _state; + /* non-dir is some stray file, ignore it */ + if (!git_path_isdir(git_buf_cstr(path))) + return 0; + return git_path_direach(path, 0, foreach_object_dir_cb, state); } |