Skip to content

Commit

Permalink
Use gix-path exe_invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
maciektr committed Jun 28, 2024
1 parent 9b2ab27 commit 0b8f14e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ fs4 = { version = "0.7", features = ["tokio"] }
fs_extra = "1"
futures = { version = "0.3", default-features = false, features = ["std", "async-await"] }
gix = ">=0.55"
gix-path = "0.10"
glob = "0.3"
ignore = "0.4"
include_dir = "0.7"
Expand Down
1 change: 1 addition & 0 deletions scarb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dunce.workspace = true
fs4.workspace = true
futures.workspace = true
gix.workspace = true
gix-path.workspace = true
glob.workspace = true
ignore.workspace = true
include_dir.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion scarb/src/sources/git/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ impl PackageRepository {
}

fn git_command() -> Command {
let mut cmd = Command::new("git");
let mut cmd = Command::new(gix_path::env::exe_invocation());

// If Scarb is run by Git (for example, the `exec` command in `git rebase`),
// the GIT_DIR is set by Git and will point to the wrong location (this takes precedence
Expand Down

0 comments on commit 0b8f14e

Please sign in to comment.