Skip to content

Commit c12e728

Browse files
cosimojsoref
authored andcommitted
GH#354 Updated dist/index.js build
1 parent 7d88087 commit c12e728

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dist/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7340,10 +7340,12 @@ class GitAuthHelper {
73407340
core.warning(`Failed to remove '${configKey}' from the git config`);
73417341
}
73427342
}
7343-
const pattern = regexpHelper.escape(configKey);
7344-
yield this.git.submoduleForeach(
7345-
// wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
7346-
`sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`, true);
7343+
if (this.settings.submodules) {
7344+
const pattern = regexpHelper.escape(configKey);
7345+
yield this.git.submoduleForeach(
7346+
// wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
7347+
`sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`, true);
7348+
}
73477349
});
73487350
}
73497351
}

0 commit comments

Comments
 (0)