summaryrefslogtreecommitdiff
path: root/git-clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-clean.sh')
-rwxr-xr-xgit-clean.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/git-clean.sh b/git-clean.sh
index 3834323bcf..db177a7886 100755
--- a/git-clean.sh
+++ b/git-clean.sh
@@ -14,11 +14,11 @@ When optional <paths>... arguments are given, the paths
affected are further limited to those that match them.'
SUBDIRECTORY_OK=Yes
. git-sh-setup
+require_work_tree
ignored=
ignoredonly=
cleandir=
-quiet=
rmf="rm -f --"
rmrf="rm -rf --"
rm_refuse="echo Not removing"
@@ -31,14 +31,13 @@ do
cleandir=1
;;
-n)
- quiet=1
rmf="echo Would remove"
rmrf="echo Would remove"
rm_refuse="echo Would not remove"
echo1=":"
;;
-q)
- quiet=1
+ echo1=":"
;;
-x)
ignored=1