Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dark64 committed Jan 11, 2022
1 parent 0ad4bbe commit c6e0c98
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zokrates_core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ fn main() {
});

let commit = Oid::from_str(LIBSNARK_COMMIT).unwrap();
let commit = repo.find_commit(commit).unwrap();

repo.reset(&commit.as_object(), ResetType::Hard, None)
.unwrap();
let _ = repo
.find_commit(commit)
.and_then(|commit| repo.reset(&commit.as_object(), ResetType::Hard, None));

for mut s in repo.submodules().unwrap() {
s.update(true, None).unwrap();
Expand Down

0 comments on commit c6e0c98

Please sign in to comment.