export GIT_DIR="$LOCAL_REPOS/${1}.git"
export GIT_WORK_TREE="$GIT_DIR/$(git config --get core.worktree)"
- $SHELL -i || :
+ GIT_PS1_SHOWUNTRACKEDFILES= PSMOVEIN="movein:${1}" $SHELL -i || :
}
add() {
git config core.bare false
git config core.worktree ../../
git config status.showUntrackedFiles no
- GIT_WORK_TREE="$PWD" git pull
+ GIT_WORK_TREE="$LOCAL_REPO/../../" git pull
trap - 0
mr -c "$MRCONFIG" config "$LOCAL_REPO" checkout="git_fake_bare_checkout '$REPO_URL' 'REPO_NAME' '../../'"
git config core.bare false
git config core.worktree ../../
git config status.showUntrackedFiles no
- export GIT_WORK_TREE="$PWD"
+ export GIT_WORK_TREE="$LOCAL_REPO/../../"
git add "$@"
git commit -m "initial checkin"
git push --all