aboutsummaryrefslogtreecommitdiff
path: root/gittorrentd
diff options
context:
space:
mode:
Diffstat (limited to 'gittorrentd')
-rwxr-xr-xgittorrentd3
1 files changed, 2 insertions, 1 deletions
diff --git a/gittorrentd b/gittorrentd
index 2383bfd..cc60339 100755
--- a/gittorrentd
+++ b/gittorrentd
@@ -76,7 +76,8 @@ 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})
+ console.log(repos)
var count = repos.length
repos.forEach(function (repo) {
console.log('in repo ' + repo)