Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

git-branch-description

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-branch-description - npm Package Compare versions

Comparing version
1.2.0
to
1.2.1
+1
-1
package.json
{
"name": "git-branch-description",
"version": "1.2.0",
"version": "1.2.1",
"description": "manage branch description via branch-description.properties",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -50,4 +50,14 @@ var exec = require('child_process').execSync;

}
try {
if (!desc) {
if (!desc) {
try {
const diff = exec(`git fetch --all && git diff origin/${name} branch-description.properties`).toString();
const matches = diff.match(new RegExp(`-${name}\\s*=\\s*(.+)`));
if (matches) {
desc = matches[1].trim();
}
} catch (e) {
}
}
if (!desc) {
try {
const diff = exec(`git fetch --all && git diff ${name} branch-description.properties`).toString();

@@ -58,6 +68,6 @@ const matches = diff.match(new RegExp(`-${name}\\s*=\\s*(.+)`));

}
} catch (e) {
}
} catch (e) {
}
return desc;
}