From: gregor herrmann Date: Tue, 27 Sep 2011 16:05:57 +0000 (+0200) Subject: Move core.bare before core.worktree. X-Git-Url: https://git.toastfreeware.priv.at/gregoa/movein.git/commitdiff_plain/974cedae3ac2171672633bd14fbdf190dc439910?hp=d1dbf45de832f2be737ca425acd226e5230db48e Move core.bare before core.worktree. Otherwise we get: + git config core.worktree ../../ + git config core.bare false fatal: core.bare and core.worktree do not make sense --- diff --git a/movein b/movein index ccdd709..2bea17c 100755 --- a/movein +++ b/movein @@ -152,8 +152,8 @@ add() { git remote add origin $REPO_URL git config branch.master.remote origin git config branch.master.merge refs/heads/master - git config core.worktree ../../ git config core.bare false + git config core.worktree ../../ GIT_WORK_TREE="$PWD" git pull trap - 0 @@ -194,8 +194,8 @@ new() { git remote add origin $REPO_URL git config branch.master.remote origin git config branch.master.merge refs/heads/master - git config core.worktree ../../ git config core.bare false + git config core.worktree ../../ export GIT_WORK_TREE="$PWD" git add "$@" git commit -m "initial checkin"