summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2007-05-18 22:45:41 +0200
committerDavid Härdeman <david@hardeman.nu>2007-05-18 22:45:41 +0200
commit989c86cf1c313cdb94034f5ce0bc4403eae6a6c8 (patch)
tree41752703c833d7c7188d191b56e5db94e0d78605
parent04d191216d2c9723bd6b90ab1829dd9880cd9cb3 (diff)
Also ignore .git directories
-rw-r--r--metastore.c2
1 files changed, 1 insertions, 1 deletions
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';