[Patchew-devel] [PATCH 01/11] cli: Fix --applier-mode
fam at euphon.net
fam at euphon.net
Fri Sep 25 15:42:33 UTC 2020
From: Fam Zheng <fam at euphon.net>
Now we have a default args.repo, we could never run --applier-mode
because of this check.
Fix it.
---
patchew-cli | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/patchew-cli b/patchew-cli
index 13aa451..98eb833 100755
--- a/patchew-cli
+++ b/patchew-cli
@@ -928,7 +928,7 @@ class ApplyCommand(SubCommand):
def do(self, args, argv):
if args.applier_mode:
- if args.repo or args.branch or args.force_branch or args.tag:
+ if args.repo not in [None, '.'] or args.branch or args.force_branch or args.tag:
print("--applier-mode conflicts with -C, -b, -B and -t")
return 1
return self._applier_mode(args)
--
2.25.1
More information about the Patchew-devel
mailing list