Skip to content
  • Andres Gomez's avatar
    ci-fairy: do not import git from the top · 38f5585e
    Andres Gomez authored
    
    
    The GitPython module depends in the git command.
    
    Installing git pulls quite some dependencies: eg. in a Debian Buster
    system it increases the used space in ~100MB.
    
    We may want to use some of the ci-fairy commands in systems with
    constrained space. Since git is used only in some of the commands,
    let's import only when it's really needed.
    
    v2:
      - Remove the get_git() helper and patch the git module at
        sys.modules in the tests (Peter).
    
    Signed-off-by: default avatarAndres Gomez <agomez@igalia.com>
    Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
    38f5585e
Validating GitLab CI configuration… Learn more