Update tgit

This is the option 1.
Seems to fix issue #2233
(The first patch from Duy)

The option 2:
The real fix is merge to git next branch,
but we are far behind it.
Will lead to a lot of conflicts.