Merge pull request #1280 from matthiasbeyer/imag-init/fix-git-init

Fix: git dir is not worktree dir
This commit is contained in:
Matthias Beyer 2018-02-11 13:29:02 +01:00 committed by GitHub
commit 4ead39233b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")