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 db319b0 commit 791dcafCopy full SHA for 791dcaf
lib/git/find_git.js
@@ -2,7 +2,6 @@
2
3
var path = require('path');
4
var fs = require('fs');
5
-var gitDir = require('./git_dir');
6
7
/**
8
* Given a full path to a single file, iterate upwards through the filesystem
@@ -13,7 +12,7 @@ var gitDir = require('./git_dir');
13
12
function findGit(filename) {
14
var paths = filename.split(path.sep);
15
for (var i = paths.length; i > 0; i--) {
16
- var p = path.resolve(paths.slice(0, i).join(path.sep) + path.sep + gitDir.name);
+ var p = path.resolve(paths.slice(0, i).join(path.sep) + path.sep + '.git');
17
if (fs.existsSync(p)) {
18
return p;
19
}
0 commit comments