@pubm/plugin-brew 0.4.4 → 0.4.5
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 +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -158,12 +158,12 @@ function ensureGitIdentity(cwd) {
|
|
|
158
158
|
try {
|
|
159
159
|
execSync("git config user.name", { ...opts, stdio: "pipe" });
|
|
160
160
|
} catch {
|
|
161
|
-
execSync('git config user.name "pubm
|
|
161
|
+
execSync('git config user.name "pubm-bot"', opts);
|
|
162
162
|
}
|
|
163
163
|
try {
|
|
164
164
|
execSync("git config user.email", { ...opts, stdio: "pipe" });
|
|
165
165
|
} catch {
|
|
166
|
-
execSync('git config user.email "
|
|
166
|
+
execSync('git config user.email "pubmsupport@gmail.com"', opts);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -349,7 +349,8 @@ function brewTap(options) {
|
|
|
349
349
|
const { execSync: execSync2 } = await import("node:child_process");
|
|
350
350
|
const tmpDir = join2(tmpdir2(), `pubm-brew-tap-${Date.now()}`);
|
|
351
351
|
const formulaFile = basename(formulaPath);
|
|
352
|
-
|
|
352
|
+
const repoUrl = /^[^/]+\/[^/]+$/.test(options.repo) ? `https://github.com/${options.repo}.git` : options.repo;
|
|
353
|
+
execSync2(`git clone --depth 1 ${repoUrl} ${tmpDir}`, {
|
|
353
354
|
stdio: "inherit"
|
|
354
355
|
});
|
|
355
356
|
ensureGitIdentity(tmpDir);
|