We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9d5e9f commit e3978c5Copy full SHA for e3978c5
example/index.js
@@ -30,6 +30,10 @@ git.listen(port, (error) => {
30
if(error) return console.error(`failed to start git-server because of error ${error}`); // eslint-disable-line
31
console.log(`node-git-server running at http://localhost:${port}`); // eslint-disable-line
32
git.list((err, result) => {
33
- console.log(result); // eslint-disable-line
+ if (!result) {
34
+ console.log("No repositories available..."); // eslint-disable-line
35
+ } else {
36
+ console.log(result); // eslint-disable-line
37
+ }
38
});
39
0 commit comments