We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d4ca7 commit 10610cdCopy full SHA for 10610cd
src/worktree.ts
@@ -129,6 +129,20 @@ export async function generateWorktree(
129
)
130
}
131
132
+
133
+ /**
134
+ * Ensure that the workspace is a safe directory.
135
+ */
136
+ try {
137
+ await execute(
138
+ `git config --global --add safe.directory "${action.workspace}/${worktreedir}"`,
139
+ action.workspace,
140
+ action.silent
141
+ )
142
+ } catch {
143
+ info('Unable to set worktree temp directory as a safe directory…')
144
+ }
145
146
} catch (error) {
147
throw new Error(
148
`There was an error creating the worktree: ${suppressSensitiveInformation(
0 commit comments