Skip to content

Commit 131fed3

Browse files
committedApr 23, 2022
Merge branch 'releases/v4' of https://github.com/JamesIves/github-pages-deploy-action into releases/v4
2 parents 7eb191b + e90f003 commit 131fed3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed
 

‎lib/git.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ function init(action) {
2626
try {
2727
(0, core_1.info)(`Deploying using ${action.tokenType}… 🔑`);
2828
(0, core_1.info)('Configuring git…');
29-
try {
30-
yield (0, execute_1.execute)(`git config --global --add safe.directory "${action.workspace}"`, action.workspace, action.silent);
31-
}
32-
catch (_a) {
33-
(0, core_1.info)('Unable to set workspace as a safe directory…');
34-
}
29+
// try {
30+
// await execute(
31+
// `git config --global --add safe.directory "${action.workspace}"`,
32+
// action.workspace,
33+
// action.silent
34+
// )
35+
// } catch {
36+
// info('Unable to set workspace as a safe directory…')
37+
// }
3538
yield (0, execute_1.execute)(`git config user.name "${action.name}"`, action.workspace, action.silent);
3639
yield (0, execute_1.execute)(`git config user.email "${action.email}"`, action.workspace, action.silent);
3740
yield (0, execute_1.execute)(`git config core.ignorecase false`, action.workspace, action.silent);
@@ -46,7 +49,7 @@ function init(action) {
4649
throw new Error();
4750
}
4851
}
49-
catch (_b) {
52+
catch (_a) {
5053
(0, core_1.info)('Unable to unset previous git config authentication as it may not exist, continuing…');
5154
}
5255
try {
@@ -55,7 +58,7 @@ function init(action) {
5558
throw new Error();
5659
}
5760
}
58-
catch (_c) {
61+
catch (_b) {
5962
(0, core_1.info)('Attempted to remove origin but failed, continuing…');
6063
}
6164
yield (0, execute_1.execute)(`git remote add origin ${action.repositoryPath}`, action.workspace, action.silent);

0 commit comments

Comments
 (0)
Failed to load comments.