Merge pull request #1280 from matthiasbeyer/imag-init/fix-git-init
Fix: git dir is not worktree dir
This commit is contained in:
commit
4ead39233b
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