added if block to guard against failure when used via svn2git