diff --git a/PBGitTree.m b/PBGitTree.m index c8003d1..2310121 100644 --- a/PBGitTree.m +++ b/PBGitTree.m @@ -216,6 +216,8 @@ NSString* p = [handle readLine]; while (p.length > 0) { + if ([p isEqualToString:@"\r"]) + break; BOOL isLeaf = ([p characterAtIndex:p.length - 1] != '/'); if (!isLeaf) p = [p substringToIndex:p.length -1];