We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1369ef9 commit 232160fCopy full SHA for 232160f
1 file changed
pyoxidizer/build.rs
@@ -35,8 +35,8 @@ fn canonicalize_path(path: &Path) -> Result<PathBuf, std::io::Error> {
35
fn find_root_git_commit(commit: Commit) -> Commit {
36
let mut current = commit;
37
38
- while current.parent_count() != 0 {
39
- current = current.parents().next().unwrap();
+ while let Ok(parent) = current.parent(0) {
+ current = parent;
40
}
41
42
current
0 commit comments