Skip to content

Commit

Permalink
Use git config --get for author information for improved backwards …
Browse files Browse the repository at this point in the history
…compatibility (#8101)

See #7756 (comment)
  • Loading branch information
zanieb authored Oct 10, 2024
1 parent 97af56a commit 7d0e566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/uv/src/commands/project/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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())
Expand Down

0 comments on commit 7d0e566

Please sign in to comment.