Update index before applying try patch with git.

c.f. http://trac.buildbot.net/ticket/2758