Fix: git dir is not worktree dir

This commit is contained in:
Matthias Beyer 2018-02-10 18:18:39 +01:00
parent edd5925f88
commit 3b098069c5

View file

@ -128,7 +128,7 @@ fn main() {
let path_str = path.to_str().map(String::from).expect("Cannot convert path to string"); let path_str = path.to_str().map(String::from).expect("Cannot convert path to string");
let worktree = format!("--work-tree={}", path_str); 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") let output = Command::new("git")