Some of the ref manipulation tools (git-for-each-ref and git-show-ref in particular) would not handle hidden (~ /^\./) refs. This may be an acceptable or possibly even desirable behaviour for the ref walkers and repackers, but git-show-ref hiddenrefname must work. This makes Git not ignore hidden refs at all. I'm not opposed to making some particular parts of the ref interface to continue to ignore hidden refs, but the restriction cannot be so deep. Signed-off-by: Petr Baudis <pasky@xxxxxxx> --- refs.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/refs.c b/refs.c index f003a0b..06fa5c2 100644 --- a/refs.c +++ b/refs.c @@ -141,7 +141,8 @@ static struct ref_list *get_ref_dir(cons int flag; int namelen; - if (de->d_name[0] == '.') + if (de->d_name[0] == '.' && (de->d_name[1] == '\0' + || (de->d_name[1] == '.' && de->d_name[2] == '\0'))) continue; namelen = strlen(de->d_name); if (namelen > 255) - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html