Tests: The index tests should use a valid filemode.

Filemode validation was introduced in libgit2/libgit2@052a2ffde4.
Repo: Update to new signature of git_merge_analysis.

git_merge_analysis has new preference output parameter. It's left unused
for now, but compiling rugged works again.