From 3b098069c5cd31d3e7ef500e128a85af9e2d0d4f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 10 Feb 2018 18:18:39 +0100 Subject: [PATCH] Fix: git dir is not worktree dir --- bin/core/imag-init/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs index 035d1590..5c6b3e44 100644 --- a/bin/core/imag-init/src/main.rs +++ b/bin/core/imag-init/src/main.rs @@ -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")