FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Try requiring build/Debug/nodegit if build/Release/nodegit wasn't found. by papandreou · Pull Request #108 · nodegit/nodegit · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .js  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Try requiring build/Debug/nodegit if build/Release/nodegit wasn't found.
  • Loading branch information
papandreou committed Oct 13, 2013
commit 04fefbc9dc93989cd6b99846714d212067e6576c
7 changes: 6 additions & 1 deletion index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ if (~os.type().indexOf('CYGWIN') && !~path.indexOf(root)) {
}

// Assign raw api to module
var rawApi = require('./build/Release/nodegit');
var rawApi;
try {
rawApi = require('./build/Release/nodegit');
} catch (e) {
rawApi = require('./build/Debug/nodegit');
}
for (var key in rawApi) {
exports[key] = rawApi[key];
}
Expand Down

Back | FazBrowse Home | New Git URL