Skip to content

Commit eed42df

Browse files
Clean the second insteadof git config global entry with trailing / (#998)
During the setup of the action, two `insteadof` git config entries are created. The second, to replace the ssh url has a trailing `/` and was not removed until now. Signed-off-by: Romain Reignier <romain.reignier@exail.com>
1 parent 8948ee7 commit eed42df

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

dist/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31285,6 +31285,9 @@ done`;
3128531285
yield execShellCommand([
3128631286
`/usr/bin/git config --global --unset-all url.https://x-access-token:${importToken}@${gihubServerDomain}.insteadof`,
3128731287
], options);
31288+
yield execShellCommand([
31289+
`/usr/bin/git config --global --unset-all url.https://x-access-token:${importToken}@${gihubServerDomain}/.insteadof`,
31290+
], options);
3128831291
}
3128931292
});
3129031293
}

src/action-ros-ci.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,12 @@ done`;
803803
],
804804
options,
805805
);
806+
await execShellCommand(
807+
[
808+
`/usr/bin/git config --global --unset-all url.https://x-access-token:${importToken}@${gihubServerDomain}/.insteadof`,
809+
],
810+
options,
811+
);
806812
}
807813
}
808814

0 commit comments

Comments
 (0)