Skip to content

Commit 01737ad

Browse files
committed
Rename parse_gix_version to parse_git_version
The function checks the `git` version. It was accidentally renamed to `parse_gix_version` in 00286c9 along with other `git` -> `gix` changes for gitoxide crates that were renamed `git-*` to `gix-*`. This also makes the same correction to a local variable.
1 parent c146b7a commit 01737ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/tools/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static EXCLUDE_LUT: Lazy<Mutex<Option<gix_worktree::Stack>>> = Lazy::new(|| {
8787
Mutex::new(cache)
8888
});
8989
/// The major, minor and patch level of the git version on the system.
90-
pub static GIT_VERSION: Lazy<(u8, u8, u8)> = Lazy::new(|| parse_gix_version().expect("git version to be parsable"));
90+
pub static GIT_VERSION: Lazy<(u8, u8, u8)> = Lazy::new(|| parse_git_version().expect("git version to be parsable"));
9191

9292
/// Define how [`scripted_fixture_writable_with_args()`] uses produces the writable copy.
9393
pub enum Creation {
@@ -116,9 +116,9 @@ pub fn should_skip_as_git_version_is_smaller_than(major: u8, minor: u8, patch: u
116116
*GIT_VERSION < (major, minor, patch)
117117
}
118118

119-
fn parse_gix_version() -> Result<(u8, u8, u8)> {
120-
let gix_program = cfg!(windows).then(|| "git.exe").unwrap_or("git");
121-
let output = std::process::Command::new(gix_program).arg("--version").output()?;
119+
fn parse_git_version() -> Result<(u8, u8, u8)> {
120+
let git_program = cfg!(windows).then(|| "git.exe").unwrap_or("git");
121+
let output = std::process::Command::new(git_program).arg("--version").output()?;
122122

123123
git_version_from_bytes(&output.stdout)
124124
}

0 commit comments

Comments
 (0)