Skip to content

Commit 791dcaf

Browse files
committed
Remove ref to git_dir
1 parent db319b0 commit 791dcaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/git/find_git.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var path = require('path');
44
var fs = require('fs');
5-
var gitDir = require('./git_dir');
65

76
/**
87
* Given a full path to a single file, iterate upwards through the filesystem
@@ -13,7 +12,7 @@ var gitDir = require('./git_dir');
1312
function findGit(filename) {
1413
var paths = filename.split(path.sep);
1514
for (var i = paths.length; i > 0; i--) {
16-
var p = path.resolve(paths.slice(0, i).join(path.sep) + path.sep + gitDir.name);
15+
var p = path.resolve(paths.slice(0, i).join(path.sep) + path.sep + '.git');
1716
if (fs.existsSync(p)) {
1817
return p;
1918
}

0 commit comments

Comments
 (0)