Skip to content

Commit aadeff5

Browse files
committed
Add debug
1 parent b00e338 commit aadeff5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/commands/fix/git.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
} from '../../utils/socket-url.mts'
1111

1212
import type { SpawnOptions } from '@socketsecurity/registry/lib/spawn'
13+
import { debugLog } from '@socketsecurity/registry/lib/debug'
1314

1415
function formatBranchName(name: string): string {
1516
return name
@@ -156,6 +157,7 @@ export async function gitEnsureIdentity(
156157
['user.email', name],
157158
['user.name', email],
158159
]
160+
debugLog('identEntries', identEntries)
159161
await Promise.all(
160162
identEntries.map(async ({ 0: prop, 1: value }) => {
161163
try {
@@ -164,6 +166,7 @@ export async function gitEnsureIdentity(
164166
['config', '--get', prop],
165167
stdioPipeOptions,
166168
)
169+
debugLog(`git config --get ${prop}`, output.stdout.trim())
167170
if (output.stdout.trim() !== value) {
168171
await spawn('git', ['config', prop, value], stdioIgnoreOptions)
169172
}

0 commit comments

Comments
 (0)