We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a197b1c commit 948a203Copy full SHA for 948a203
Classes/git/PBGitRepository_PBGitBinarySupport.m
@@ -43,7 +43,12 @@ - (NSString *)outputOfTaskWithArguments:(NSArray *)arguments input:(NSString *)i
43
BOOL success = [task launchTask:error];
44
if (!success) return nil;
45
46
- return [task standardOutputString];
+ NSString *output = [task standardOutputString];
47
+ /* Strip extraneous \n from output */
48
+ if (output.length > 1 && [output characterAtIndex:output.length - 1] == '\n') {
49
+ output = [output stringByReplacingCharactersInRange:NSMakeRange(output.length - 1, 1) withString:@""];
50
+ }
51
+ return output;
52
}
53
54
- (NSString *)outputOfTaskWithArguments:(NSArray *)arguments error:(NSError **)error
0 commit comments