Added check for nil repo
Added check for nil repo

GTEnumerator will throw an exception if the provided repo is nil. This doesn't go along with ObjC's style very well, so instead that case is checked for and if it matches, nil is returned.

royalwang/objective-git