Skip to content

Commit 845ba10

Browse files
committed
directly use gix instead of git in build-script
1 parent dd32090 commit 845ba10

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use anyhow::{Context as _, Error, Result};
2-
use gix as git;
32
use std::{env, path::Path};
43

54
mod tracked {
@@ -98,7 +97,7 @@ fn write_git_version(out_dir: &Path) -> Result<()> {
9897
}
9998

10099
fn get_git_hash() -> Result<Option<String>> {
101-
match git::open_opts(env::current_dir()?, git::open::Options::isolated()) {
100+
match gix::open_opts(env::current_dir()?, gix::open::Options::isolated()) {
102101
Ok(repo) => {
103102
let head_id = repo.head()?.id();
104103

0 commit comments

Comments
 (0)