From 989c86cf1c313cdb94034f5ce0bc4403eae6a6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A4rdeman?= Date: Fri, 18 May 2007 22:45:41 +0200 Subject: Also ignore .git directories --- metastore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metastore.c b/metastore.c index 3e0068c..0c15d83 100644 --- a/metastore.c +++ b/metastore.c @@ -300,7 +300,7 @@ mentries_recurse(const char *opath, struct metaentry **mhead) } while ((dent = readdir(dir))) { - if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) + if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..") || !strcmp(dent->d_name, ".git")) continue; snprintf(tpath, PATH_MAX, "%s/%s", path, dent->d_name); tpath[PATH_MAX - 1] = '\0'; -- cgit v1.2.1