Skip to content

Commit ee4a344

Browse files
committed
[annex] Change conflict autoresolve error message
It seems that it's no longer possible to get the names of files that were automatically resolved. Changing the error message to simply advise the user to examine the results after the merge.
1 parent 7786caf commit ee4a344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/annex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ func checkMergeErrors(stdout, stderr string) error {
11001100
// abort merge
11011101
} else if strings.Contains(messages, "merge conflict was automatically resolved") {
11021102
// Merge conflict in annex files (automatically resolved by keeping both copies)
1103-
return fmt.Errorf("files changed locally and remotely. Both files have been kept:\n %s", strings.Join(parseFilesAnnexConflict(stdout), ", "))
1103+
return fmt.Errorf("files changed locally and remotely and the conflict was automatically resolved; you may want to examine the result")
11041104
// TODO: This should probably instead become a warning or notice, instead of a full error
11051105
}
11061106
return nil

0 commit comments

Comments
 (0)