git-repo-info
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -28,4 +28,5 @@ 'use strict'; | ||
var linkedGitDir = fs.readFileSync(gitPath).toString(); | ||
var absolutePath=path.resolve(path.dirname(gitPath)); | ||
var worktreeGitDirUnresolved = /gitdir: (.*)/.exec(linkedGitDir)[1]; | ||
var worktreeGitDir = path.resolve(worktreeGitDirUnresolved); | ||
var worktreeGitDir = path.resolve(absolutePath,worktreeGitDirUnresolved); | ||
var commonDirPath = path.join(worktreeGitDir, 'commondir'); | ||
@@ -32,0 +33,0 @@ if (fs.existsSync(commonDirPath)) { |
{ | ||
"name": "git-repo-info", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Retrieve current sha and branch name from a git repo.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10364
242