Skip to content

Commit 3ccd416

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/apply-patches.js

Lines changed: 4 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,9 @@ async function applyFreezePatches(rawFolder, outputFolder) {
154155
patchApplied = true;
155156
}
156157

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

0 commit comments

Comments
 (0)