This is fixup for ea375c0dcc. The bug was not visible because commit.RefUrl was always returning empty url due regression described in https://github.com/gogits/git-module/pull/4
ea375c0dcc