You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Commit goes through with conflict markers still in the file #35095
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Make a merge that conflicts in one file and leave the conflict unresolved:
git init -b main sample-merge &&cd sample-merge
echo"greeting = hello"> notes.txt && git add notes.txt && git commit -m "Add notes"
git switch -c feature &&echo"greeting = hi from feature"> notes.txt && git commit -am "Feature greeting"
git switch main &&echo"greeting = hi from main"> notes.txt && git commit -am "Main greeting"
git merge feature # CONFLICT (content): Merge conflict in notes.txt
Add the folder as a project in T3 Code and open a new thread in it.
In the thread details panel open Git action options > Commit, type a message and click Commit.
Run git show HEAD:notes.txt.
Expected behavior
T3 Code tells me notes.txt still has an unresolved conflict and does not commit it, as plain git commit does in the same state ("Committing is not possible because you have unmerged files").
Actual behavior
The commit dialog lists notes.txt as an ordinary +4 / -0 change with no warning. Commit goes through ("Committed 5b2afa1"), the merge is concluded as a two-parent commit, and the committed file still has the <<<<<<<, ======= and >>>>>>> lines:
$ git show HEAD:notes.txt
<<<<<<< HEAD
greeting = hi from main
=======
greeting = hi from feature
>>>>>>> feature
Activity