Skip to content

Commit

Permalink
Merge pull request #42 from jhowarth15/master
Browse files Browse the repository at this point in the history
Fix GitServer param in readme
  • Loading branch information
qrpike committed Mar 28, 2017
2 parents fbbb717 + fa04245 commit 3be1aa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -40,7 +40,7 @@ The GitServer is a very easy to get up and running git server. It uses the [Push
{ user:newUser, permissions:['R','W'] }
]
}
server = new GitServer([ newRepo ]);
server = new GitServer({repos: [ newRepo ]});
```

# Events:
Expand Down Expand Up @@ -88,7 +88,7 @@ These events can be aborted or accepted. If there will be no listeners for any o
{ user:newUser, permissions:['R','W'] }
]
}
server = new GitServer([ newRepo ]);
server = new GitServer({repos: [ newRepo ]});
server.on('commit', function(update, repo) {
// do some logging or other stuff
update.accept() //accept the update.
Expand Down Expand Up @@ -163,7 +163,7 @@ To enable HTTPS in the module, use the 'cert' param:
key : fs.readFileSync('../certs/privatekey.pem')
cert : fs.readFileSync('../certs/certificate.pem')
};
_g = new GitServer([ newRepo ], undefined, undefined, undefined, certs);
_g = new GitServer({repos: [ newRepo ]}, undefined, undefined, undefined, certs);
```

To enable HTTPS in the cli, use the '--ssl' option along with '--key' and '--cert' options:
Expand Down

0 comments on commit 3be1aa6

Please sign in to comment.