summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-02-11 13:29:02 +0100
committerGitHub <noreply@github.com>2018-02-11 13:29:02 +0100
commit4ead39233bd06ec9bb735507e18ac3c91ab5052b (patch)
treebc73627612a111ee5ecaf7b4cf426b981fde4f0a
parentd5e0c23499b0b38556c7c8ea4d0066d21231668a (diff)
parent3b098069c5cd31d3e7ef500e128a85af9e2d0d4f (diff)
downloadimag-4ead39233bd06ec9bb735507e18ac3c91ab5052b.zip
imag-4ead39233bd06ec9bb735507e18ac3c91ab5052b.tar.gz
Merge pull request #1280 from matthiasbeyer/imag-init/fix-git-init
Fix: git dir is not worktree dir
-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")