aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2010-11-24 23:18:23 +0100
committerBertrand Jacquin <beber@meleeweb.net>2010-11-24 23:18:23 +0100
commit823994fe99c0b5f897238a014368b3c30cbfaf70 (patch)
tree7b723ab355bd3e1cddbe41e2ae5e5f6c5ddbea44
parentui-stats: Remove unnecessary #include (diff)
downloadcgit-master.tar.gz
Tree: follow symlinksHEADmaster
-rw-r--r--scan-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scan-tree.c b/scan-tree.c
index a0e09ce..805fc16 100644
--- a/scan-tree.c
+++ b/scan-tree.c
@@ -198,7 +198,7 @@ static void scan_path(const char *base, const char *path, repo_config_fn fn)
free(buf);
continue;
}
- if (S_ISDIR(st.st_mode))
+ if (S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))
scan_path(base, buf, fn);
free(buf);
}