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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user