mattia / pagure

Forked from pagure 3 years ago
Clone

fec0c50 Check that the identifier isn't the hash of a git tree

Authored and Committed by pingou 6 years ago
    Check that the identifier isn't the hash of a git tree
    
    If the user provides the hash of a tree instead of the hash of a commit,
    we currently crash in a 500 error.
    With this commit if the hash returned a tree, don't try to extract a tree
    from it.
    
    Fixes an error reported by email.
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
    
        
file modified
+8 -2