Compare commits
5 Commits
9928010268
...
19a4c88792
| Author | SHA1 | Date |
|---|---|---|
|
|
19a4c88792 | |
|
|
c48b6f3069 | |
|
|
fd0018900e | |
|
|
a3e0545847 | |
|
|
31d6c8357f |
|
|
@ -424,7 +424,27 @@ class CustomModuleManager {
|
||||||
stdio: ['ignore', 'pipe', 'pipe'],
|
stdio: ['ignore', 'pipe', 'pipe'],
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
execSync('git reset --hard origin/HEAD', {
|
// Resolve the default branch (origin/HEAD) and fetch it explicitly.
|
||||||
|
// With shallow clones, `origin/HEAD` is stale and `git reset --hard
|
||||||
|
// origin/HEAD` never picks up new commits on the default branch.
|
||||||
|
let defaultBranch = 'main';
|
||||||
|
try {
|
||||||
|
defaultBranch = execSync('git symbolic-ref refs/remotes/origin/HEAD --short', {
|
||||||
|
cwd: repoCacheDir,
|
||||||
|
stdio: 'pipe',
|
||||||
|
})
|
||||||
|
.toString()
|
||||||
|
.trim()
|
||||||
|
.replace('origin/', '');
|
||||||
|
} catch {
|
||||||
|
// Fallback if origin/HEAD is not set
|
||||||
|
}
|
||||||
|
execSync(`git fetch --depth 1 origin ${quoteCustomRef(defaultBranch)}`, {
|
||||||
|
cwd: repoCacheDir,
|
||||||
|
stdio: ['ignore', 'pipe', 'pipe'],
|
||||||
|
env: { ...process.env, GIT_TERMINAL_PROMPT: '0' },
|
||||||
|
});
|
||||||
|
execSync(`git reset --hard origin/${quoteCustomRef(defaultBranch)}`, {
|
||||||
cwd: repoCacheDir,
|
cwd: repoCacheDir,
|
||||||
stdio: ['ignore', 'pipe', 'pipe'],
|
stdio: ['ignore', 'pipe', 'pipe'],
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,17 @@ modules:
|
||||||
npmPackage: bmad-builder
|
npmPackage: bmad-builder
|
||||||
default_channel: stable
|
default_channel: stable
|
||||||
|
|
||||||
|
bmad-automator:
|
||||||
|
url: https://github.com/bmad-code-org/bmad-automator
|
||||||
|
module-definition: skills/module.yaml
|
||||||
|
code: baut
|
||||||
|
name: "BMad Automator"
|
||||||
|
description: "Story automation skills"
|
||||||
|
defaultSelected: false
|
||||||
|
type: experimental
|
||||||
|
npmPackage: bmad-story-automator
|
||||||
|
default_channel: next
|
||||||
|
|
||||||
bmad-creative-intelligence-suite:
|
bmad-creative-intelligence-suite:
|
||||||
url: https://github.com/bmad-code-org/bmad-module-creative-intelligence-suite
|
url: https://github.com/bmad-code-org/bmad-module-creative-intelligence-suite
|
||||||
module-definition: src/module.yaml
|
module-definition: src/module.yaml
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue