handling None in truncate_vcs_url