Work around BSD whose typeof(tv.tv_sec) != time_t
[gitweb.git] / builtin-ls-files.c
index 9dec282fba6ba22e37d13bdc5e35fa4a031433b5..ca6f33d0466572863db7dbd4c3079dcb06caa4e0 100644 (file)
@@ -419,6 +419,7 @@ int cmd_ls_files(int argc, const char **argv, const char *prefix)
                }
                if (!strcmp(arg, "-d") || !strcmp(arg, "--deleted")) {
                        show_deleted = 1;
+                       require_work_tree = 1;
                        continue;
                }
                if (!strcmp(arg, "-m") || !strcmp(arg, "--modified")) {