• Show log

    Commit

  • Hash : 05e891f1
    Author : Julian Ganz
    Date : 2018-06-01T08:44:30

    refdb_fs: test whether the base directory exists when globbing
    
    This commit fixes a regression introduced by
    
            20a2b02d9a1bcb4825ec49605146223c565dcacf
    
    The commit introduced an optimization for finding references using a
    glob: rather than iterating over all references and matching each one
    against the glob, we would iterate only over references within the
    directory common to all possible references which may match against the
    glob.
    
    However, contrary to the `ref/` directory, which was the previous entry
    point for the iteration, this directory may not exist. In this case, the
    optimization causes an error (`ENOENT`) rather than the iterator simply
    yielding no references.
    
    This patch fixes the regression by checkign for this specific case.