]> ToastFreeware Gitweb - gregoa/movein.git/blobdiff - movein
Pass some variables to the login shell.
[gregoa/movein.git] / movein
diff --git a/movein b/movein
index 2bea17c16f022f7091966f532e97e4e443bdf77a..f6d54edc8c16d8ad3c0417aee80492266fd7a887 100755 (executable)
--- a/movein
+++ b/movein
@@ -130,7 +130,7 @@ login() {
     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() {
@@ -154,7 +154,8 @@ add() {
        git config branch.master.merge refs/heads/master
        git config core.bare false
        git config core.worktree ../../
-       GIT_WORK_TREE="$PWD" git pull
+       git config status.showUntrackedFiles no
+       GIT_WORK_TREE="$LOCAL_REPO/../../" git pull
        trap - 0
 
        mr -c "$MRCONFIG" config "$LOCAL_REPO" checkout="git_fake_bare_checkout '$REPO_URL' 'REPO_NAME' '../../'"
@@ -196,7 +197,8 @@ new() {
        git config branch.master.merge refs/heads/master
        git config core.bare false
        git config core.worktree ../../
-       export GIT_WORK_TREE="$PWD"
+       git config status.showUntrackedFiles no
+       export GIT_WORK_TREE="$LOCAL_REPO/../../"
        git add "$@"
        git commit -m "initial checkin"
        git push --all