Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .bumpy/fix-includeif-case.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@varlock/bumpy': patch
---

Fix git push auth failure caused by case-sensitive includeIf regex not matching lowercase keys from git config
3 changes: 2 additions & 1 deletion packages/bumpy/src/commands/ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ function pushWithToken(rootDir: string, branch: string, config: BumpyConfig): vo
const savedHeader = tryRunArgs(['git', 'config', '--local', extraHeaderKey], { cwd: rootDir });

// Collect includeIf entries that point to credential config files
const includeIfRaw = tryRunArgs(['git', 'config', '--local', '--get-regexp', '^includeIf\\.gitdir:'], {
// git config --get-regexp outputs keys in lowercase, so match accordingly
const includeIfRaw = tryRunArgs(['git', 'config', '--local', '--get-regexp', '^includeif\\.gitdir:'], {
cwd: rootDir,
});
const savedIncludeIfs: Array<{ key: string; value: string }> = [];
Expand Down