Use git config --get for author information for improved backwards compatibility (#8101)

See https://github.com/astral-sh/uv/pull/7756#issuecomment-2405577849
This commit is contained in:
Zanie Blue
2024-10-10 12:16:16 -05:00
committed by GitHub
parent 97af56a603
commit 7d0e56607d
+2 -2
View File
@@ -905,7 +905,7 @@ fn get_author_from_git(path: &Path) -> Result<Author> {
let output = Command::new(&git)
.arg("config")
.arg("get")
.arg("--get")
.arg("user.name")
.current_dir(path)
.stdout(Stdio::piped())
@@ -917,7 +917,7 @@ fn get_author_from_git(path: &Path) -> Result<Author> {
let output = Command::new(&git)
.arg("config")
.arg("get")
.arg("--get")
.arg("user.email")
.current_dir(path)
.stdout(Stdio::piped())