I'm dumb.

This commit is contained in:
André Cruz
2013-05-24 23:10:39 +01:00
parent fc193b2d24
commit 9f2b02d98e

View File

@@ -12,13 +12,11 @@ var which = require('which');
var hasGit;
// Check if git is installed
if (hasGit == null) {
try {
which.sync('git');
hasGit = true;
} catch (ex) {
hasGit = false;
}
try {
which.sync('git');
hasGit = true;
} catch (ex) {
hasGit = false;
}
function GitResolver(source, options) {