3ba932 Handle the situation where the branch asked is not found in the git repo

Authored and Committed by Pierre-Yves Chibon 10 years ago
    Handle the situation where the branch asked is not found in the git repo
    
    This should fix an error seen in the logs:
      File "/usr/lib/python2.7/site-packages/pagure/internal/__init__.py", line 185, in mergeable_request_pull
        fork_obj.lookup_branch(request.branch_from).get_object().hex]
    AttributeError: 'NoneType' object has no attribute 'get_object'
    
        
file modified
+9 -2