Clean up output of "for_each_ref()" when GIT_DIR is "."