Patch Set 1:

this only works with jgit change Ia1f9ecbaf3b67fe6213324ad9231925780da7e24 but since Shawn doesn't like that one we either need to improve that change or use your patch as an intermediate solution to the problem