Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #688

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,17 @@
*.swp
*~.nib

build/*
.build/*
build-iPhoneSimulator/*
build-iPhoneOS/*
objective-git.bridgesupport
ObjectiveGitFramework/build/*
ObjectiveGit-iOS.framework/*
External/libgit2*.a
External/libgit2-ios

*.pbxuser
*.perspective
*.perspectivev3

*.mode1v3
*.mode2v3

project.xcworkspace
*/xcuserdata/
*.xccheckout
*.xcscmblueprint

ObjectiveGitTests/fixtures/Fixtures/*

External/ios-openssl/include
External/ios-openssl/lib
External/libssh2-ios

External/libgit2-mac.a
Carthage/Build

8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@
#
---
os: osx
osx_image: xcode9.3
osx_image: xcode12.2
language: objective-c

matrix:
fast_finish: true
include:
- osx_image: xcode9.3
env:
- env:
- SCHEME="ObjectiveGit Mac"
- osx_image: xcode9.3
env:
- env:
- SCHEME="ObjectiveGit iOS"

before_install:
Expand Down
6 changes: 3 additions & 3 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "jspahrsummers/xcconfigs" "master"
github "Quick/Quick" ~> 1.3.4
github "Quick/Nimble" ~> 7.3.3
github "ZipArchive/ZipArchive" ~> 2.1.4
github "Quick/Quick" ~> 2.1.0
github "Quick/Nimble" ~> 8.0.1
github "ZipArchive/ZipArchive" ~> 2.2.3
8 changes: 4 additions & 4 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "Quick/Nimble" "v7.3.3"
github "Quick/Quick" "v1.3.4"
github "ZipArchive/ZipArchive" "v2.1.4"
github "jspahrsummers/xcconfigs" "bb795558a76e5daf3688500055bbcfe243bffa8d"
github "Quick/Nimble" "v8.1.2"
github "Quick/Quick" "v2.2.1"
github "ZipArchive/ZipArchive" "v2.2.3"
github "jspahrsummers/xcconfigs" "4ced0ad5a971220917994a4edfa6abf9702e3818"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Nimble
Submodule Nimble updated 128 files
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Quick
Submodule Quick updated 96 files
+1 −1 .github/ISSUE_TEMPLATE
+52 −0 .github/workflows/ci.yml
+15 −0 .github/workflows/swiftlint.yml
+0 −2 .hound.yml
+1 −1 .swift-version
+7 −4 .swiftlint.yml
+48 −48 .travis.yml
+1 −1 CONTRIBUTING.md
+3 −7 Dangerfile
+24 −2 Documentation/en-us/InstallingQuick.md
+72 −3 Documentation/en-us/SharedExamples.md
+1 −1 Documentation/ja/InstallingQuick.md
+4 −4 Documentation/ja/SharedExamples.md
+1 −1 Documentation/ko-kr/BehavioralTesting.md
+2 −2 Documentation/ko-kr/InstallingQuick.md
+3 −3 Documentation/ko-kr/SharedExamples.md
+4 −4 Documentation/pt-br/SharedExamples.md
+1 −1 Documentation/zh-cn/InstallingQuick.md
+3 −3 Documentation/zh-cn/SharedExamples.md
+1 −1 Externals/Nimble
+1 −2 Gemfile
+80 −60 Gemfile.lock
+2 −2 Package.resolved
+39 −37 Package.swift
+12 −6 Package@swift-4.2.swift
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.h
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.m
+1 −1 Quick Templates/Quick Configuration Class.xctemplate/Swift/___FILEBASENAME___.swift
+3 −3 Quick Templates/Quick Spec Class.xctemplate/Objective-C/___FILEBASENAME___.m
+1 −1 Quick Templates/Quick Spec Class.xctemplate/Swift/___FILEBASENAME___.swift
+10 −3 Quick.podspec
+243 −353 Quick.xcodeproj/project.pbxproj
+1 −1 Quick.xcodeproj/xcshareddata/xcschemes/Quick-iOS.xcscheme
+20 −14 Quick.xcodeproj/xcshareddata/xcschemes/Quick-macOS.xcscheme
+1 −1 Quick.xcodeproj/xcshareddata/xcschemes/Quick-tvOS.xcscheme
+8 −0 Quick.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+3 −1 README.md
+12 −7 Rakefile
+8 −6 Sources/Quick/Behavior.swift
+19 −12 Sources/Quick/Callsite.swift
+24 −20 Sources/Quick/Configuration/Configuration.swift
+59 −20 Sources/Quick/Configuration/QuickConfiguration.swift
+16 −12 Sources/Quick/DSL/DSL.swift
+25 −24 Sources/Quick/DSL/World+DSL.swift
+1 −1 Sources/Quick/ErrorUtility.swift
+9 −20 Sources/Quick/Example.swift
+7 −0 Sources/Quick/ExampleGroup.swift
+5 −9 Sources/Quick/ExampleMetadata.swift
+5 −9 Sources/Quick/Filter.swift
+2 −2 Sources/Quick/NSBundle+CurrentTestBundle.swift
+3 −10 Sources/Quick/QuickMain.swift
+1 −1 Sources/Quick/QuickSelectedTestSuiteBuilder.swift
+43 −52 Sources/Quick/QuickSpec.swift
+69 −0 Sources/Quick/QuickTestObservation.swift
+1 −1 Sources/Quick/QuickTestSuite.swift
+5 −8 Sources/Quick/String+C99ExtendedIdentifier.swift
+43 −27 Sources/Quick/World.swift
+5 −22 Sources/QuickObjCRuntime/QuickSpecBase.m
+7 −0 Sources/QuickObjCRuntime/include/QuickSpecBase.h
+2 −43 Sources/QuickObjectiveC/Configuration/QuickConfiguration.m
+1 −1 Sources/QuickObjectiveC/QuickSpec.h
+43 −33 Sources/QuickObjectiveC/QuickSpec.m
+0 −11 Sources/QuickSpecBase/include/QuickSpecBase.h
+5 −0 Tests/.swiftlint.yml
+16 −15 Tests/LinuxMain.swift
+20 −0 Tests/QuickIssue853RegressionTests/SubclassOfSubclassWithStructPropertyTests.swift
+13 −2 Tests/QuickTests/QuickFocusedTests/FocusedTests.swift
+0 −30 Tests/QuickTests/QuickTestHelpers/SpecRunner.swift
+0 −9 Tests/QuickTests/QuickTestHelpers/TestRun.swift
+5 −5 Tests/QuickTests/QuickTestHelpers/XCTestCaseProvider.swift
+6 −6 Tests/QuickTests/QuickTests/FunctionalTests/AfterEachTests.swift
+4 −4 Tests/QuickTests/QuickTests/FunctionalTests/BeforeEachTests.swift
+3 −3 Tests/QuickTests/QuickTests/FunctionalTests/BeforeSuiteTests.swift
+4 −6 Tests/QuickTests/QuickTests/FunctionalTests/BehaviorTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/Configuration/AfterEach/Configuration+AfterEachTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/Configuration/BeforeEach/Configuration+BeforeEachTests.swift
+2 −2 Tests/QuickTests/QuickTests/FunctionalTests/ContextTests.swift
+18 −6 Tests/QuickTests/QuickTests/FunctionalTests/CurrentSpecTests.swift
+3 −3 Tests/QuickTests/QuickTests/FunctionalTests/DescribeTests.swift
+16 −14 Tests/QuickTests/QuickTests/FunctionalTests/ItTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/ObjC/ItTests+ObjC.m
+13 −1 Tests/QuickTests/QuickTests/FunctionalTests/PendingTests.swift
+52 −0 Tests/QuickTests/QuickTests/FunctionalTests/QuickSpec_SelectedTests.swift
+1 −1 Tests/QuickTests/QuickTests/FunctionalTests/SharedExamples+BeforeEachTests.swift
+3 −3 Tests/QuickTests/QuickTests/FunctionalTests/SharedExamplesTests.swift
+8 −23 Tests/QuickTests/QuickTests/Helpers/QCKSpecRunner.m
+24 −0 Tests/QuickTests/QuickTests/Helpers/QuickSpec+MethodList.swift
+0 −17 Tests/QuickTests/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.h
+0 −23 Tests/QuickTests/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.m
+101 −0 Tests/QuickTests/QuickTests/Helpers/QuickSpecRunner.swift
+1 −2 Tests/QuickTests/QuickTests/Helpers/QuickTestsBridgingHeader.h
+0 −20 Tests/QuickTests/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.h
+0 −54 Tests/QuickTests/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.m
+64 −0 Tests/QuickTests/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.swift
+1 −1 script/release
+0 −4 script/travis-install-macos
2 changes: 1 addition & 1 deletion Carthage/Checkouts/ZipArchive
Submodule ZipArchive updated 159 files
2 changes: 1 addition & 1 deletion Carthage/Checkouts/xcconfigs
2 changes: 1 addition & 1 deletion External/libgit2
Submodule libgit2 updated 1251 files
2 changes: 1 addition & 1 deletion External/libssh2
Submodule libssh2 updated 129 files
2 changes: 1 addition & 1 deletion External/openssl
Submodule openssl updated 19279 files
5 changes: 4 additions & 1 deletion ObjectiveGit.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ framework module ObjectiveGit {
header "git2/version.h"
header "git2/sys/commit.h"
header "git2/sys/config.h"
header "git2/sys/credential.h"
header "git2/sys/diff.h"
header "git2/sys/filter.h"
header "git2/sys/hashsig.h"
Expand All @@ -64,14 +65,14 @@ framework module ObjectiveGit {
header "git2/sys/refs.h"
header "git2/sys/repository.h"
header "git2/sys/transport.h"
header "git2/sys/time.h"
header "git2/cred_helpers.h"
header "git2/sys/openssl.h"
header "git2/sys/stream.h"
header "git2/trace.h"

exclude header "git2/inttypes.h"
exclude header "git2/stdint.h"
exclude header "git2/sys/git2/alloc.h"
exclude header "git2/sys/git2/annotated_commit.h"
exclude header "git2/sys/git2/attr.h"
exclude header "git2/sys/git2/blame.h"
Expand All @@ -82,6 +83,7 @@ framework module ObjectiveGit {
exclude header "git2/sys/git2/cherrypick.h"
exclude header "git2/sys/git2/clone.h"
exclude header "git2/sys/git2/commit.h"
exclude header "git2/sys/git2/cred.h"
exclude header "git2/sys/git2/cred_helpers.h"
exclude header "git2/sys/git2/describe.h"
exclude header "git2/sys/git2/errors.h"
Expand All @@ -99,6 +101,7 @@ framework module ObjectiveGit {
exclude header "git2/sys/git2/oidarray.h"
exclude header "git2/sys/git2/pack.h"
exclude header "git2/sys/git2/patch.h"
exclude header "git2/sys/git2/path.h"
exclude header "git2/sys/git2/pathspec.h"
exclude header "git2/sys/git2/rebase.h"
exclude header "git2/sys/git2/refdb.h"
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/Categories/NSArray+StringArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/strarray.h"
#import <ObjectiveGit/git2/strarray.h>

@interface NSArray (StringArray)

Expand Down
4 changes: 2 additions & 2 deletions ObjectiveGit/Categories/NSData+Git.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
//

#import <Foundation/Foundation.h>
#import "git2/buffer.h"
#import "git2/oid.h"
#import <ObjectiveGit/git2/buffer.h>
#import <ObjectiveGit/git2/oid.h>

@interface NSData (Git)

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/Categories/NSDate+GTTimeAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/types.h"
#import <ObjectiveGit/git2/types.h>

@interface NSDate (GTTimeAdditions)

Expand Down
8 changes: 5 additions & 3 deletions ObjectiveGit/GTBlob.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ - (instancetype)initWithData:(NSData *)data inRepository:(GTRepository *)reposit
NSParameterAssert(repository != nil);

git_oid oid;
int gitError = git_blob_create_frombuffer(&oid, repository.git_repository, [data bytes], data.length);
int gitError = git_blob_create_from_buffer(&oid, repository.git_repository, [data bytes], data.length);
if(gitError < GIT_OK) {
if(error != NULL) {
*error = [NSError git_errorFor:gitError description:@"Failed to create blob from NSData"];
Expand All @@ -100,7 +100,7 @@ - (instancetype)initWithFile:(NSURL *)file inRepository:(GTRepository *)reposito
NSParameterAssert(repository != nil);

git_oid oid;
int gitError = git_blob_create_fromdisk(&oid, repository.git_repository, [[file path] fileSystemRepresentation]);
int gitError = git_blob_create_from_disk(&oid, repository.git_repository, [[file path] fileSystemRepresentation]);
if(gitError < GIT_OK) {
if(error != NULL) {
*error = [NSError git_errorFor:gitError description:@"Failed to create blob from NSURL"];
Expand Down Expand Up @@ -137,7 +137,9 @@ - (NSData *)applyFiltersForPath:(NSString *)path error:(NSError **)error {
NSCParameterAssert(path != nil);

git_buf buffer = GIT_BUF_INIT_CONST(0, NULL);
int gitError = git_blob_filtered_content(&buffer, self.git_blob, path.UTF8String, 1);

git_blob_filter_options opts = GIT_BLOB_FILTER_OPTIONS_INIT;
int gitError = git_blob_filter(&buffer, self.git_blob, path.UTF8String, &opts);
if (gitError != GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to apply filters for path %@ to blob", path];
return nil;
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ - (NSArray *)remotes {
}
}

git_strarray_free(&names);
git_strarray_dispose(&names);

return remotes;
}
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTCredential+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ typedef struct {
__unsafe_unretained GTCredentialProvider *credProvider;
} GTCredentialAcquireCallbackInfo;

int GTCredentialAcquireCallback(git_cred **cred, const char *url, const char *username_from_url, unsigned int allowed_types, void *payload);
int GTCredentialAcquireCallback(git_credential **cred, const char *url, const char *username_from_url, unsigned int allowed_types, void *payload);
12 changes: 6 additions & 6 deletions ObjectiveGit/GTCredential.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
/// An enum describing the data needed for authentication.
/// See `git_credtype_t`.
typedef NS_ENUM(NSInteger, GTCredentialType) {
GTCredentialTypeUserPassPlaintext = GIT_CREDTYPE_USERPASS_PLAINTEXT,
GTCredentialTypeSSHKey = GIT_CREDTYPE_SSH_KEY,
GTCredentialTypeSSHCustom = GIT_CREDTYPE_SSH_CUSTOM,
GTCredentialTypeUserPassPlaintext = GIT_CREDENTIAL_USERPASS_PLAINTEXT,
GTCredentialTypeSSHKey = GIT_CREDENTIAL_SSH_KEY,
GTCredentialTypeSSHCustom = GIT_CREDENTIAL_SSH_CUSTOM,
};

NS_ASSUME_NONNULL_BEGIN
Expand Down Expand Up @@ -50,7 +50,7 @@ NS_ASSUME_NONNULL_BEGIN
@end

/// The GTCredential class is used to provide authentication data.
/// It acts as a wrapper around `git_cred` objects.
/// It acts as a wrapper around `git_credential` objects.
@interface GTCredential : NSObject

/// Create a credential object from a username/password pair.
Expand Down Expand Up @@ -86,8 +86,8 @@ NS_ASSUME_NONNULL_BEGIN
/// Return a new GTCredential instance, or nil if an error occurred
+ (instancetype _Nullable)credentialWithUserName:(NSString *)userName publicKeyString:(NSString * _Nullable)publicKeyString privateKeyString:(NSString *)privateKeyString passphrase:(NSString * _Nullable)passphrase error:(NSError **)error;

/// The underlying `git_cred` object.
- (git_cred *)git_cred __attribute__((objc_returns_inner_pointer));
/// The underlying `git_credential` object.
- (git_credential *)git_credential __attribute__((objc_returns_inner_pointer));

@end

Expand Down
24 changes: 12 additions & 12 deletions ObjectiveGit/GTCredential.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ - (GTCredential *)credentialForType:(GTCredentialType)type URL:(NSString *)URL u
@end

@interface GTCredential ()
@property (nonatomic, assign, readonly) git_cred *git_cred;
@property (nonatomic, assign, readonly) git_credential *git_credential;
@end

@implementation GTCredential

+ (instancetype)credentialWithUserName:(NSString *)userName password:(NSString *)password error:(NSError **)error {
git_cred *cred;
int gitError = git_cred_userpass_plaintext_new(&cred, userName.UTF8String, password.UTF8String);
git_credential *cred;
int gitError = git_credential_userpass_plaintext_new(&cred, userName.UTF8String, password.UTF8String);
if (gitError != GIT_OK) {
if (error) *error = [NSError git_errorFor:gitError description:@"Failed to create credentials object" failureReason:@"There was an error creating a credential object for username %@.", userName];
return nil;
Expand All @@ -61,8 +61,8 @@ + (instancetype)credentialWithUserName:(NSString *)userName publicKeyURL:(NSURL
NSString *privateKeyPath = privateKeyURL.filePathURL.path;
NSAssert(privateKeyPath != nil, @"Invalid file URL passed: %@", privateKeyURL);

git_cred *cred;
int gitError = git_cred_ssh_key_new(&cred, userName.UTF8String, publicKeyPath.fileSystemRepresentation, privateKeyPath.fileSystemRepresentation, passphrase.UTF8String);
git_credential *cred;
int gitError = git_credential_ssh_key_new(&cred, userName.UTF8String, publicKeyPath.fileSystemRepresentation, privateKeyPath.fileSystemRepresentation, passphrase.UTF8String);
if (gitError != GIT_OK) {
if (error) *error = [NSError git_errorFor:gitError description:@"Failed to create credentials object" failureReason:@"There was an error creating a credential object for username %@ with the provided public/private key pair.\nPublic key: %@\nPrivate key: %@", userName, publicKeyURL, privateKeyURL];
return nil;
Expand All @@ -74,8 +74,8 @@ + (instancetype)credentialWithUserName:(NSString *)userName publicKeyURL:(NSURL
+ (instancetype)credentialWithUserName:(NSString *)userName publicKeyString:(NSString *)publicKeyString privateKeyString:(NSString *)privateKeyString passphrase:(NSString *)passphrase error:(NSError **)error {
NSParameterAssert(privateKeyString != nil);

git_cred *cred;
int gitError = git_cred_ssh_key_memory_new(&cred, userName.UTF8String, publicKeyString.UTF8String, privateKeyString.UTF8String, passphrase.UTF8String);
git_credential *cred;
int gitError = git_credential_ssh_key_memory_new(&cred, userName.UTF8String, publicKeyString.UTF8String, privateKeyString.UTF8String, passphrase.UTF8String);
if (gitError != GIT_OK) {
if (error) *error = [NSError git_errorFor:gitError description:@"Failed to create credentials object" failureReason:@"There was an error creating a credential object for username %@ with the provided public/private key pair.\nPublic key: %@", userName, publicKeyString];
return nil;
Expand All @@ -84,21 +84,21 @@ + (instancetype)credentialWithUserName:(NSString *)userName publicKeyString:(NSS
return [[self alloc] initWithGitCred:cred];
}

- (instancetype)initWithGitCred:(git_cred *)cred {
- (instancetype)initWithGitCred:(git_credential *)cred {
NSParameterAssert(cred != nil);
self = [self init];

if (self == nil) return nil;

_git_cred = cred;
_git_credential = cred;

return self;
}

@end

int GTCredentialAcquireCallback(git_cred **git_cred, const char *url, const char *username_from_url, unsigned int allowed_types, void *payload) {
NSCParameterAssert(git_cred != NULL);
int GTCredentialAcquireCallback(git_credential **git_credential, const char *url, const char *username_from_url, unsigned int allowed_types, void *payload) {
NSCParameterAssert(git_credential != NULL);
NSCParameterAssert(payload != NULL);

GTCredentialAcquireCallbackInfo *info = payload;
Expand All @@ -118,6 +118,6 @@ int GTCredentialAcquireCallback(git_cred **git_cred, const char *url, const char
return GIT_ERROR;
}

*git_cred = cred.git_cred;
*git_credential = cred.git_credential;
return GIT_OK;
}
2 changes: 1 addition & 1 deletion ObjectiveGit/GTDiff.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ + (int)handleParsedOptionsDictionary:(NSDictionary *)dictionary usingBlock:(int
git_strarray strArray = pathSpec.git_strarray;
if (pathSpec != nil) newOptions.pathspec = strArray;
@onExit {
git_strarray_free((git_strarray *)&strArray);
git_strarray_dispose((git_strarray *)&strArray);
};

git_diff_options *optionsPtr = &newOptions;
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTIndex.m
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ - (BOOL)addData:(NSData *)data withPath:(NSString *)path error:(NSError **)error
entry.path = [path cStringUsingEncoding:NSUTF8StringEncoding];
entry.mode = GIT_FILEMODE_BLOB;

int status = git_index_add_frombuffer(self.git_index, &entry, [data bytes], [data length]);
int status = git_index_add_from_buffer(self.git_index, &entry, [data bytes], [data length]);

if (status != GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:status description:@"Failed to add data with name %@ into index.", path];
Expand Down
4 changes: 2 additions & 2 deletions ObjectiveGit/GTOID.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

#import <Foundation/Foundation.h>
#import "git2/oid.h"
#import "GTObject.h"
#import <ObjectiveGit/git2/oid.h>
#import <ObjectiveGit/GTObject.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTOID.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ + (instancetype)oidWithSHACString:(const char *)SHA {
}

- (BOOL)isZero {
return git_oid_iszero(self.git_oid) != 0;
return git_oid_is_zero(self.git_oid) != 0;
}

#pragma mark NSObject
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/types.h"
#import <ObjectiveGit/git2/types.h>

typedef NS_ENUM(int, GTObjectType) {
GTObjectTypeAny = GIT_OBJECT_ANY, /**< Object can be any of the following */
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTReflogEntry+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ NS_ASSUME_NONNULL_BEGIN

@end

NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
6 changes: 3 additions & 3 deletions ObjectiveGit/GTRemote.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ - (BOOL)rename:(NSString *)name error:(NSError **)error {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to rename remote" userInfo:userInfo failureReason:@"Couldn't rename remote %@ to %@", self.name, name];
}

git_strarray_free(&problematic_refspecs);
git_strarray_dispose(&problematic_refspecs);

return gitError == GIT_OK;
}
Expand All @@ -168,7 +168,7 @@ - (NSArray *)fetchRefspecs {
if (gitError != GIT_OK) return nil;

@onExit {
git_strarray_free(&refspecs);
git_strarray_dispose(&refspecs);
};

return [NSArray git_arrayWithStrarray:refspecs];
Expand All @@ -181,7 +181,7 @@ - (NSArray *)pushRefspecs {
if (gitError != GIT_OK) return nil;

@onExit {
git_strarray_free(&refspecs);
git_strarray_dispose(&refspecs);
};

return [NSArray git_arrayWithStrarray:refspecs];
Expand Down
Loading