replace link with commit hash for svn/git