Skip to content

Commit b3af3f3

Browse files
authored
Merge pull request #685 from tiennou/update/v0.28
Update to v0.28-rc1
2 parents ffd3f85 + 7ab537e commit b3af3f3

23 files changed

+53
-55
lines changed

Cartfile.private

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
github "jspahrsummers/xcconfigs" "master"
2-
github "Quick/Quick" ~> 1.2.0
3-
github "Quick/Nimble" ~> 7.1.0
4-
github "ZipArchive/ZipArchive" ~> 2.1.2
2+
github "Quick/Quick" ~> 1.3.4
3+
github "Quick/Nimble" ~> 7.3.3
4+
github "ZipArchive/ZipArchive" ~> 2.1.4

Cartfile.resolved

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github "Quick/Nimble" "v7.1.0"
2-
github "Quick/Quick" "v1.2.0"
3-
github "ZipArchive/ZipArchive" "v2.1.2"
1+
github "Quick/Nimble" "v7.3.3"
2+
github "Quick/Quick" "v1.3.4"
3+
github "ZipArchive/ZipArchive" "v2.1.4"
44
github "jspahrsummers/xcconfigs" "bb795558a76e5daf3688500055bbcfe243bffa8d"

Carthage/Checkouts/Nimble

Submodule Nimble updated 59 files

Carthage/Checkouts/Quick

Submodule Quick updated 56 files

External/libgit2

Submodule libgit2 updated 6582 files

ObjectiveGit/Categories/NSData+Git.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ - (BOOL)git_getOid:(git_oid *)oid error:(NSError **)error {
1717
if ([self length] != sizeof(git_oid)) {
1818
if (error != NULL) {
1919
*error = [NSError errorWithDomain:GTGitErrorDomain
20-
code:GITERR_INVALID
20+
code:GIT_ERROR_INVALID
2121
userInfo:
2222
[NSDictionary dictionaryWithObject:@"can't extract oid from data of incorrect length"
2323
forKey:NSLocalizedDescriptionKey]];

ObjectiveGit/Categories/NSError+Git.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ + (NSError *)git_errorFor:(int)code {
9898
}
9999

100100
+ (NSString *)git_descriptionForErrorCode:(int)code {
101-
const git_error *gitLastError = giterr_last();
101+
const git_error *gitLastError = git_error_last();
102102
if (gitLastError != NULL) {
103103
return @(gitLastError->message);
104-
} else if (code == GITERR_OS) {
104+
} else if (code == GIT_ERROR_OS) {
105105
return @(strerror(errno));
106106
} else {
107107
return nil;

ObjectiveGit/GTBlob.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ - (instancetype)initWithOid:(const git_oid *)oid inRepository:(GTRepository *)re
6363
NSParameterAssert(repository != nil);
6464

6565
git_object *obj;
66-
int gitError = git_object_lookup(&obj, repository.git_repository, oid, (git_otype) GTObjectTypeBlob);
66+
int gitError = git_object_lookup(&obj, repository.git_repository, oid, (git_object_t) GTObjectTypeBlob);
6767
if (gitError < GIT_OK) {
6868
if (error != NULL) {
6969
*error = [NSError git_errorFor:gitError description:@"Failed to lookup blob"];

ObjectiveGit/GTCredential.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ int GTCredentialAcquireCallback(git_cred **git_cred, const char *url, const char
105105
GTCredentialProvider *provider = info->credProvider;
106106

107107
if (provider == nil) {
108-
giterr_set_str(GIT_EUSER, "No GTCredentialProvider set, but authentication was requested.");
108+
git_error_set_str(GIT_EUSER, "No GTCredentialProvider set, but authentication was requested.");
109109
return GIT_ERROR;
110110
}
111111

@@ -114,7 +114,7 @@ int GTCredentialAcquireCallback(git_cred **git_cred, const char *url, const char
114114

115115
GTCredential *cred = [provider credentialForType:(GTCredentialType)allowed_types URL:URL userName:userName];
116116
if (cred == nil) {
117-
giterr_set_str(GIT_EUSER, "GTCredentialProvider failed to provide credentials.");
117+
git_error_set_str(GIT_EUSER, "GTCredentialProvider failed to provide credentials.");
118118
return GIT_ERROR;
119119
}
120120

0 commit comments

Comments
 (0)