Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-repo-info

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-repo-info - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

3

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc