Fix branch/commit resolution on project:view