Skip to content

Commit 8ec17f3

Browse files
committed
Add debugging info to know on which branch code runs
1 parent 4794f60 commit 8ec17f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/apply-patches.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ async function applyFreezePatches(rawFolder, outputFolder) {
118118

119119
const { stdout } = await execFile('git', ['rev-parse', '--abbrev-ref', 'HEAD']);
120120
const currentBranch = stdout.trim();
121+
console.log(`Current Git branch is ${currentBranch}`);
121122

122123
for (const file of patchFiles) {
123124
if (!file.endsWith('.json')) {
@@ -154,6 +155,12 @@ async function applyFreezePatches(rawFolder, outputFolder) {
154155
patchApplied = true;
155156
}
156157

158+
{
159+
const { stdout } = await execFile('git', ['rev-parse', '--abbrev-ref', 'HEAD']);
160+
const currentBranch = stdout.trim();
161+
console.log(`Current Git branch is ${currentBranch}`);
162+
}
163+
157164
// Update curated version of the index.json file
158165
if (patchApplied) {
159166
await fs.writeFile(

0 commit comments

Comments
 (0)