fix local git setup

This commit is contained in:
David Blass
2025-11-25 16:02:08 -05:00
parent 632fffbfa7
commit ff375b97e4
2 changed files with 108 additions and 23 deletions
+3 -1
View File
@@ -20,7 +20,7 @@ import {
revokeInstallationToken,
setupGitHubInstallationToken,
} from "./utils/github.ts";
import { setupGitAuth, setupGitBranch, setupGitConfig } from "./utils/setup.ts";
import { restoreGitConfig, setupGitAuth, setupGitBranch, setupGitConfig } from "./utils/setup.ts";
// runtime validation using agents (needed for ArkType)
// Note: The AgentName type is defined in external.ts, this is the runtime validator
@@ -96,6 +96,8 @@ export async function main(inputs: Inputs): Promise<MainResult> {
error: errorMessage,
};
} finally {
restoreGitConfig();
if (pollInterval) {
clearInterval(pollInterval);
}