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 187dcbe commit 0f25454Copy full SHA for 0f25454
lib/src/index.ts
@@ -52,7 +52,11 @@ export const resolveConflicts = async <T extends string = InbuiltMergeStrategies
52
if (conflicts.length === 0) {
53
const serialized = await serialize(format, merged);
54
await fs.writeFile(filePath, serialized, "utf8");
55
- execSync(`git add ${filePath}`);
+ try {
56
+ execSync(`git add ${filePath}`);
57
+ } catch (error) {
58
+ globalLogger.warn(filePath, `Failed to stage file: ${error}`);
59
+ }
60
} else {
61
const serialized = await reconstructConflict(merged, ours, theirs, format);
62
await Promise.all([
0 commit comments