diff options
| author | Chris Ball <chris@printf.net> | 2015-06-01 14:14:37 -0400 |
|---|---|---|
| committer | Chris Ball <chris@printf.net> | 2015-06-01 14:14:37 -0400 |
| commit | 09f38bbf76577aaff58ca9cebe70da5f6cbb33d1 (patch) | |
| tree | 5d8e1f26c7a579b92b7d26009e0257de4340177a | |
| parent | 3c29320fd5c9e9d4ea2b4936fead9046b6a96534 (diff) | |
| parent | bfe8b17eec315d38070417bf45d5cbcbbb74dc18 (diff) | |
Merge pull request #29 from anarcat/nofail
do not fail on unreadable directories
| -rwxr-xr-x | gittorrentd | 2 |
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) |
