Fix: git dir is not worktree dir
This commit is contained in:
parent
edd5925f88
commit
3b098069c5
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ fn main() {
|
|||
|
||||
let path_str = path.to_str().map(String::from).expect("Cannot convert path to string");
|
||||
let worktree = format!("--work-tree={}", path_str);
|
||||
let gitdir = format!("--git-dir={}", path_str);
|
||||
let gitdir = format!("--git-dir={}/.git", path_str);
|
||||
|
||||
{
|
||||
let output = Command::new("git")
|
||||
|
|
Loading…
Reference in a new issue