aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)