X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-clean.sh;h=44917381863e27de6bedc91fa742eb0f8211a492;hb=8371d8fd094548c1d02b8583fdbff8204a725ffc;hp=299309d97169e6d9a52a8175dd0b8f6d54c5b369;hpb=610f043bb378d12f399f4e5692fb874e0a043b23;p=git.git diff --git a/git-clean.sh b/git-clean.sh index 299309d97..449173818 100755 --- a/git-clean.sh +++ b/git-clean.sh @@ -20,13 +20,13 @@ require_work_tree ignored= ignoredonly= cleandir= -disabled="`git-config --bool clean.requireForce`" +disabled="`git config --bool clean.requireForce`" rmf="rm -f --" rmrf="rm -rf --" rm_refuse="echo Not removing" echo1="echo" -while case "$#" in 0) break ;; esac +while test $# != 0 do case "$1" in -d) @@ -83,7 +83,7 @@ if [ -z "$ignored" ]; then fi fi -git-ls-files --others --directory $excl ${excl_info:+"$excl_info"} -- "$@" | +git ls-files --others --directory $excl ${excl_info:+"$excl_info"} -- "$@" | while read -r file; do if [ -d "$file" -a ! -L "$file" ]; then if [ -z "$cleandir" ]; then