771fad6 Resolve the commit in the SCM.commit property method instead of the constructor

Authored and Committed by mprahl 4 years ago
    Resolve the commit in the SCM.commit property method instead of the constructor
    
    This will prevent the need to call `SCM.get_latest` in the constructor,
    since not all SCM objects need the commit to the branch. It also fixes
    the situation where a component's git repo doesn't have a "master" branch.
    
    See https://pagure.io/fm-orchestrator/issue/1224
    
        
file modified
+3 -2
file modified
+4 -1