From b7fdc9ef0e5fe2d179058c0ce326c9075f64443c Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 7 Aug 2022 08:56:39 -0700 Subject: [PATCH] Make sure that --read-batch doesn't try to check args. --- exclude.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exclude.c b/exclude.c index cd77c543..e5991009 100644 --- a/exclude.c +++ b/exclude.c @@ -40,6 +40,7 @@ extern int delete_excluded; extern int cvs_exclude; extern int sanitize_paths; extern int protocol_version; +extern int read_batch; extern int list_only; extern int module_id; @@ -310,7 +311,7 @@ void add_implied_include(const char *arg) int slash_cnt = 1; /* We know we're adding a leading slash. */ const char *cp; char *p; - if (am_server || old_style_args || list_only || filesfrom_host != NULL) + if (am_server || old_style_args || list_only || read_batch || filesfrom_host != NULL) return; if (relative_paths) { if ((cp = strstr(arg, "/./")) != NULL) -- 2.47.2