def GetGitCVSPath(url, git_domain, logger):
    """
    get module git cvspath from it's git url
    Args :
        url : module's git url
        git_domain : git domain name
        logger : the object of Log.Log
    Returns :
        return git cvspath of module,if enconters some errors return None
    """
    if not url.startswith(git_domain):
        logger.LevPrint('ERROR', 'Git url does not start with %s!!' % git_domain, False)
        return None

    cvspath = url[len(git_domain)+1:]
    if cvspath.endswith('/'):
        cvspath = cvspath[:-1]

    return cvspath