summaryrefslogtreecommitdiff
path: root/git-clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-clean.sh')
-rwxr-xr-xgit-clean.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-clean.sh b/git-clean.sh
index 071b974f49..db177a7886 100755
--- a/git-clean.sh
+++ b/git-clean.sh
@@ -14,6 +14,7 @@ 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=