Skip to content

Commit

Permalink
Update libgit2
Browse files Browse the repository at this point in the history
Fixes a bug on older OSX clients where it couldn't link against
Security.framework
  • Loading branch information
alexcrichton committed Sep 3, 2015
1 parent cbe8e1a commit 9878f76
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions libgit2-sys/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ pub enum git_error_code {
GIT_EEOF = -20,
GIT_EINVALID = -21,
GIT_EUNCOMMITTED = -22,
GIT_EDIRECTORY = -23,
GIT_PASSTHROUGH = -30,
GIT_ITEROVER = -31,
}
Expand Down
2 changes: 1 addition & 1 deletion libgit2-sys/libgit2
Submodule libgit2 updated 134 files
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ impl Error {
raw::GIT_EEOF => super::ErrorCode::Eof,
raw::GIT_EINVALID => super::ErrorCode::Invalid,
raw::GIT_EUNCOMMITTED => super::ErrorCode::Uncommitted,
raw::GIT_EDIRECTORY => super::ErrorCode::Directory,
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ pub enum ErrorCode {
Invalid,
/// Uncommitted changes in index prevented operation
Uncommitted,
/// Operation was not valid for a directory,
Directory,
}

/// A listing of the possible states that a repository can be in.
Expand Down

0 comments on commit 9878f76

Please sign in to comment.