Added upstream sha retrieval