Skip to content

Commit 1772541

Browse files
pjw91alexcrichton
authored andcommitted
Fix Odb.exists()
1 parent 6949470 commit 1772541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/odb.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl<'repo> Odb<'repo> {
152152

153153
/// Checks if the object database has an object.
154154
pub fn exists(&self, oid: Oid) -> bool {
155-
unsafe { raw::git_odb_exists(self.raw, oid.raw()) != -1 }
155+
unsafe { raw::git_odb_exists(self.raw, oid.raw()) != 0 }
156156
}
157157

158158
/// Potentially finds an object that starts with the given prefix.

0 commit comments

Comments
 (0)