X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=transport.c;h=9ad4a16c317b90770974aa5afbcf0986f4a5db91;hb=7fcda9201e192413c2e63fe35ce6664dbc81705d;hp=56831c57c5cf6500714c46c63581ca98662d58c3;hpb=a9ed6ce0e7057b94809d3c51094ba96fe96fded8;p=git.git diff --git a/transport.c b/transport.c index 56831c57c..9ad4a16c3 100644 --- a/transport.c +++ b/transport.c @@ -50,9 +50,7 @@ static int read_loose_refs(struct strbuf *path, int name_offset, memset (&list, 0, sizeof(list)); while ((de = readdir(dir))) { - if (de->d_name[0] == '.' && (de->d_name[1] == '\0' || - (de->d_name[1] == '.' && - de->d_name[2] == '\0'))) + if (is_dot_or_dotdot(de->d_name)) continue; ALLOC_GROW(list.entries, list.nr + 1, list.alloc); list.entries[list.nr++] = xstrdup(de->d_name);