Skip to content

Commit

Permalink
make git conflict message detection locale independent (hopefully)
Browse files Browse the repository at this point in the history
at least it now works in spanish version too
  • Loading branch information
phil294 committed Sep 17, 2022
1 parent 8c55bc2 commit 32e211a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/views/GitInput.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default defineComponent
emit 'success', result
catch e
console.warn e
if not e.killed and e.code == 1 and e.stdout.includes("CONFLICT") and e.stderr.includes("after resolving the conflicts")
if not e.killed and e.code == 1 and e.stdout.includes("CONFLICT") and e.stderr.includes(" 'git add <")
error.value = "Command finished with CONFLICT. You can now close this window and resolve the conflicts manually.\n\n\n" + e.stdout
else if e.stdout
error.value = (JSON.stringify e, null, 4).replaceAll('\\n', '\n')
Expand Down

0 comments on commit 32e211a

Please sign in to comment.