aboutsummaryrefslogtreecommitdiff
path: root/gittorrentd
diff options
context:
space:
mode:
authorChris Ball <chris@printf.net>2015-06-01 14:14:37 -0400
committerChris Ball <chris@printf.net>2015-06-01 14:14:37 -0400
commit09f38bbf76577aaff58ca9cebe70da5f6cbb33d1 (patch)
tree5d8e1f26c7a579b92b7d26009e0257de4340177a /gittorrentd
parent3c29320fd5c9e9d4ea2b4936fead9046b6a96534 (diff)
parentbfe8b17eec315d38070417bf45d5cbcbbb74dc18 (diff)
Merge pull request #29 from anarcat/nofail
do not fail on unreadable directories
Diffstat (limited to 'gittorrentd')
-rwxr-xr-xgittorrentd2
1 files changed, 1 insertions, 1 deletions
diff --git a/gittorrentd b/gittorrentd
index 2383bfd..130731f 100755
--- a/gittorrentd
+++ b/gittorrentd
@@ -76,7 +76,7 @@ function bpad (n, buf) {
dht.on('ready', function () {
// Spider all */.git dirs and announce all refs.
- var repos = glob.sync('*/.git/git-daemon-export-ok')
+ var repos = glob.sync('*/{,.git/}git-daemon-export-ok', {strict: false})
var count = repos.length
repos.forEach(function (repo) {
console.log('in repo ' + repo)