@pmate/cli 0.46.1 → 0.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21650,7 +21650,7 @@ function remoteGitAuthorization(command, token) {
|
|
|
21650
21650
|
if (!token) return command;
|
|
21651
21651
|
const header = "AUTHORIZATION: basic " + Buffer.from("x-access-token:" + token).toString("base64");
|
|
21652
21652
|
const values = { GIT_CONFIG_COUNT: "3", GIT_CONFIG_KEY_0: "url.https://github.com/.insteadOf", GIT_CONFIG_VALUE_0: "git@github.com:", GIT_CONFIG_KEY_1: "url.https://github.com/.insteadOf", GIT_CONFIG_VALUE_1: "git@ramroll:", GIT_CONFIG_KEY_2: "http.https://github.com/.extraHeader", GIT_CONFIG_VALUE_2: header };
|
|
21653
|
-
return Object.entries(values).map(([key, value]) =>
|
|
21653
|
+
return "git() { " + Object.entries(values).map(([key, value]) => key + "=" + shellQuote2(value)).join(" ") + ' command git "$@"; }\n' + command;
|
|
21654
21654
|
}
|
|
21655
21655
|
|
|
21656
21656
|
// src/commands/ServiceCommandHandler.ts
|