]> git.phdru.name Git - git-scripts.git/commitdiff
Fix: delete old files
authorOleg Broytman <phd@phdru.name>
Sun, 10 Apr 2016 03:58:41 +0000 (06:58 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 10 Apr 2016 03:58:41 +0000 (06:58 +0300)
ls-dirty-carefully
status-dirty-carefully

index f723fd07eff9dff4b4f1b092f8991d8ee4d8fdf7..df5e362fba25ca7d4c48db55aa70b66e31141fae 100755 (executable)
@@ -6,7 +6,7 @@ cd "$HOME"/tmp && rm -rf ls-dirty-carefully.tmp &&
 LSTMP="$HOME"/tmp/ls-dirty-carefully.tmp \
 "$PROG_DIR"/do-all \
    'test "$g" = "$d/.git" || continue;' \
-   'rsync -aW --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \
+   'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \
    'test -n "`git status -s`" && echo "$d"' &&
 
 cd "$HOME"/tmp && exec rm -rf ls-dirty-carefully.tmp
index bdbf901b755934b23045f5727d78a76dd8771383..065dac07c9faa9c7c6be89552a9193f804555d41 100755 (executable)
@@ -6,7 +6,7 @@ cd "$HOME"/tmp && rm -rf status-dirty-carefully.tmp &&
 LSTMP="$HOME"/tmp/status-dirty-carefully.tmp \
 "$PROG_DIR"/do-all \
    'test "$g" = "$d/.git" || continue;' \
-   'rsync -aW --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \
+   'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \
    'test -n "`git status -s`" && echo "----- $d -----" &&' \
    'git status --branch' &&