@docupace/pipeline 1.0.81-alpha.6 → 1.0.81-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/merge/cli-merge.js +19 -11
package/package.json
CHANGED
package/src/merge/cli-merge.js
CHANGED
|
@@ -66,17 +66,6 @@ function attemptMerge(sourceBranch, targetBranch, verbose = false) {
|
|
|
66
66
|
console.log(`🔀 Merging ${sourceBranch} into current branch`);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
// Fetch and pull the source branch
|
|
70
|
-
try {
|
|
71
|
-
execSync(`git fetch origin ${sourceBranch}`, {
|
|
72
|
-
stdio: verbose ? 'inherit' : 'pipe',
|
|
73
|
-
});
|
|
74
|
-
if (verbose) console.log(`📥 Fetched source branch: ${sourceBranch}`);
|
|
75
|
-
} catch (error) {
|
|
76
|
-
if (verbose)
|
|
77
|
-
console.log(`⚠️ Failed to fetch ${sourceBranch}: ${error.message}`);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
69
|
try {
|
|
81
70
|
execSync(`git merge --no-commit --no-ff origin/${sourceBranch}`, {
|
|
82
71
|
stdio: 'pipe',
|
|
@@ -391,6 +380,25 @@ export function setupMerge(program) {
|
|
|
391
380
|
);
|
|
392
381
|
}
|
|
393
382
|
|
|
383
|
+
// Log current git head before validation
|
|
384
|
+
try {
|
|
385
|
+
const gitHead = execSync('git rev-parse HEAD', {
|
|
386
|
+
encoding: 'utf8',
|
|
387
|
+
stdio: 'pipe',
|
|
388
|
+
}).trim();
|
|
389
|
+
console.log(`📍 Current git HEAD: ${gitHead}`);
|
|
390
|
+
|
|
391
|
+
const gitDescribe = execSync('git describe --long', {
|
|
392
|
+
encoding: 'utf8',
|
|
393
|
+
stdio: 'pipe',
|
|
394
|
+
}).trim();
|
|
395
|
+
console.log(`🏷️ Git describe: ${gitDescribe}`);
|
|
396
|
+
} catch (error) {
|
|
397
|
+
console.log(
|
|
398
|
+
`📍 Current git HEAD: ${execSync('git rev-parse HEAD', { encoding: 'utf8', stdio: 'pipe' }).trim()}`,
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
|
|
394
402
|
// Check for uncommitted changesets in source branch
|
|
395
403
|
if (!mergeFail && !mergeSuccess) {
|
|
396
404
|
checkForUncommittedChangesets(sourceBranch, verbose);
|