Use master objective-git cause it include the latest libgit2-0.27
This commit is contained in:
parent
674bbc073c
commit
6ab976ad82
2 changed files with 4 additions and 4 deletions
2
Cartfile
2
Cartfile
|
|
@ -1,6 +1,6 @@
|
|||
github "SVProgressHUD/SVProgressHUD"
|
||||
github "radex/SwiftyUserDefaults"
|
||||
github "libgit2/objective-git" "0.13.0"
|
||||
github "libgit2/objective-git" "master"
|
||||
github "leonbreedt/FavIcon"
|
||||
github "kishikawakatsumi/KeychainAccess"
|
||||
github "mattrubin/OneTimePassword"
|
||||
|
|
|
|||
|
|
@ -411,8 +411,8 @@ public class PasswordStore {
|
|||
}
|
||||
var commits = [GTCommit]()
|
||||
let enumerator = try GTEnumerator(repository: storeRepository)
|
||||
if let sha = try storeRepository.headReference().targetOID.sha {
|
||||
try enumerator.pushSHA(sha)
|
||||
if let targetOID = try storeRepository.headReference().targetOID {
|
||||
try enumerator.pushSHA(targetOID.sha)
|
||||
}
|
||||
for _ in 0 ..< count {
|
||||
let commit = try enumerator.nextObject(withSuccess: nil)
|
||||
|
|
@ -554,7 +554,7 @@ public class PasswordStore {
|
|||
let newTree = try storeRepository.index().writeTree()
|
||||
let headReference = try storeRepository.headReference()
|
||||
let commitEnum = try GTEnumerator(repository: storeRepository)
|
||||
try commitEnum.pushSHA(headReference.targetOID.sha!)
|
||||
try commitEnum.pushSHA(headReference.targetOID!.sha)
|
||||
let parent = commitEnum.nextObject() as! GTCommit
|
||||
let signature = gitSignatureForNow
|
||||
let commit = try storeRepository.createCommit(with: newTree, message: message, author: signature, committer: signature, parents: [parent], updatingReferenceNamed: headReference.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue