summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-02-10 18:18:39 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-02-11 15:05:26 +0100
commitc572bab3c0b3139f8c4fc7b77b282f80b42d9336 (patch)
tree692f2ddc36591422434ae3357e167cce54e0a0c2
parentedd5925f8846b9216dcbc2bcab2950dfe6047fcd (diff)
Fix: git dir is not worktree dir
Cherry-picked from: 3b098069c5cd31d3e7ef500e128a85af9e2d0d4f
-rw-r--r--bin/core/imag-init/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs
index 035d159..5c6b3e4 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")