Skip to content

Commit b93a1a1

Browse files
committed
fix(sync): detect add-add merge conflicts
1 parent 9112049 commit b93a1a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sync-upstream.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PROTECTED_SOURCE_REV=""
3333

3434
try_auto_resolve() {
3535
local conflicts resolved path handled
36-
conflicts=$(git status --porcelain | awk '$1 ~ /U/ {print $2}')
36+
conflicts=$(git diff --name-only --diff-filter=U)
3737
if [ -z "$conflicts" ]; then
3838
return 1
3939
fi

0 commit comments

Comments
 (0)