| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6ea5d45 commit 150b7c1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,5 +40,11 @@ module.exports = function getStatus() { | |||
| 40 | 40 | .split("\n") | |
| 41 | 41 | .map(getStatusPromiseFromLine) | |
| 42 | 42 | ); | |
| 43 | + }) | ||
| 44 | + .catch(function() { | ||
| 45 | + // In the case that NodeGit is required from another project via npm we | ||
| 46 | + // won't be able to run submodule commands but that's ok since the | ||
| 47 | + // correct version of libgit2 is published with nodegit. | ||
| 48 | + return Promise.resolve([]); | ||
| 43 | 49 | }); | |
| 44 | 50 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments