Fix clean worktree validation

This commit is contained in:
2026-07-25 07:27:10 +00:00
parent 828dceae13
commit 838ef16208
5 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -768,9 +768,9 @@ export const adminRouter = router({
} }
} }
let resolvedCommitSha: string | null = null;
const gitRef = input.install.gitRef?.trim(); const gitRef = input.install.gitRef?.trim();
if (gitRef) { if (gitRef) {
let resolvedCommitSha: string;
try { try {
resolvedCommitSha = await resolveGitCommitSha(gitRef); resolvedCommitSha = await resolveGitCommitSha(gitRef);
} catch (error) { } catch (error) {
+1 -1
View File
@@ -284,7 +284,7 @@ export const appRouter = router({
accessTokenValidUntil: oauthSession.accessTokenValidUntil, accessTokenValidUntil: oauthSession.accessTokenValidUntil,
refreshTokenValidUntil: oauthSession.refreshTokenValidUntil, refreshTokenValidUntil: oauthSession.refreshTokenValidUntil,
}; };
let created = null; let created: Awaited<ReturnType<typeof ctx.users.createUser>>;
try { try {
created = await ctx.users.createUser({ created = await ctx.users.createUser({
username: input.username, username: input.username,
+1
View File
@@ -13,6 +13,7 @@
"zod": "^4.3.5" "zod": "^4.3.5"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^26.1.1",
"tsx": "^4.21.0", "tsx": "^4.21.0",
"typescript": "6.0.2" "typescript": "6.0.2"
} }
+1
View File
@@ -5,6 +5,7 @@
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",
"target": "ES2023", "target": "ES2023",
"lib": ["ES2024"], "lib": ["ES2024"],
"types": ["node"],
"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,
"noUncheckedIndexedAccess": true, "noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true, "exactOptionalPropertyTypes": true,
+3
View File
@@ -431,6 +431,9 @@ importers:
specifier: ^4.3.5 specifier: ^4.3.5
version: 4.3.5 version: 4.3.5
devDependencies: devDependencies:
'@types/node':
specifier: ^26.1.1
version: 26.1.1
tsx: tsx:
specifier: ^4.21.0 specifier: ^4.21.0
version: 4.21.0 version: 4.21.0