Skip to content

Commit e192ce8

Browse files
andrebergbrotherbard
authored andcommitted
Set a copy of the "Push" message strings for the alert panel message with a small case "p" letter because it will be appended in the middle of a sentence.
1 parent 9e8002a commit e192ce8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PBRefController.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ - (void) showConfirmPushRefSheet:(PBGitRef *)ref remote:(PBGitRef *)remoteRef
6060
else
6161
description = [NSString stringWithFormat:@"Push updates to remote %@", [remoteRef remoteName]];
6262

63+
NSString * sdesc = [NSString stringWithFormat:@"p%@", [description substringFromIndex:1]];
6364
NSAlert *alert = [NSAlert alertWithMessageText:description
6465
defaultButton:@"Push"
6566
alternateButton:@"Cancel"
6667
otherButton:nil
67-
informativeTextWithFormat:@"Are you sure you want to %@?", description];
68+
informativeTextWithFormat:@"Are you sure you want to %@?", sdesc];
6869

6970
NSMutableDictionary *info = [NSMutableDictionary dictionary];
7071
if (ref)

0 commit comments

Comments
 (0)