Skip to content

Commit e3f1422

Browse files
committed
Update Objective-Git to 0.27-mostly
1 parent 4a8ad68 commit e3f1422

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Classes/Views/PBCloneRepositoryPanel.m

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,14 @@ - (IBAction) clone:(id)sender
124124
[sheet beginProgressSheetForBlock:^NSError *{
125125
NSURL *repoURL = [NSURL URLWithString:url];
126126
NSError *error = nil;
127-
[GTRepository cloneFromURL:repoURL
128-
toWorkingDirectory:documentURL
129-
options:@{GTRepositoryCloneOptionsBare: @(self.isBare)}
130-
error:&error
131-
transferProgressBlock:nil
132-
checkoutProgressBlock:nil];
133-
return error;
127+
GTRepository *repo = [GTRepository cloneFromURL:repoURL
128+
toWorkingDirectory:documentURL
129+
options:@{GTRepositoryCloneOptionsBare: @(self.isBare)}
130+
error:&error
131+
transferProgressBlock:nil];
132+
if (!repo)
133+
return error;
134+
return nil;
134135
} completionHandler:^(NSError *error) {
135136
if (error) {
136137
[self close];

External/objective-git

Submodule objective-git updated 92 files

0 commit comments

Comments
 (0)