Make sure that --read-batch doesn't try to check args.
authorWayne Davison <wayne@opencoder.net>
Sun, 7 Aug 2022 15:56:39 +0000 (08:56 -0700)
committerWayne Davison <wayne@opencoder.net>
Sun, 7 Aug 2022 15:56:39 +0000 (08:56 -0700)
exclude.c

index cd77c543b44b6b1f4073f2321e9d4a4e59c0535c..e5991009e4b3211654b2a2dbfdd1172c3c6041eb 100644 (file)
--- 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)