From ddc1a7f60877444a7443a7746b7618e824fcf566 Mon Sep 17 00:00:00 2001 From: milahu Date: Tue, 12 Oct 2021 20:38:34 +0200 Subject: [PATCH 1/2] args: allow_root default False --- gitfs/utils/args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitfs/utils/args.py b/gitfs/utils/args.py index 54409abc..22aaa4e9 100644 --- a/gitfs/utils/args.py +++ b/gitfs/utils/args.py @@ -44,7 +44,7 @@ def __init__(self, parser): ("foreground", (False, "bool")), ("branch", ("master", "string")), ("allow_other", (False, "bool")), - ("allow_root", (True, "bool")), + ("allow_root", (False, "bool")), ("commiter_name", (self.get_commiter_user, "string")), ("commiter_email", (self.get_commiter_email, "string")), ("max_size", (10, "float")), From 01e7a0e4b766ef47f2a0ab0bed3d99a8e76bbf26 Mon Sep 17 00:00:00 2001 From: milahu Date: Tue, 12 Oct 2021 20:46:37 +0200 Subject: [PATCH 2/2] dont set args.allow_root --- gitfs/utils/args.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gitfs/utils/args.py b/gitfs/utils/args.py index 22aaa4e9..71fab949 100644 --- a/gitfs/utils/args.py +++ b/gitfs/utils/args.py @@ -76,12 +76,6 @@ def build_config(self, args): return self.check_args(self.set_defaults(args)) def check_args(self, args): - # check allow_other and allow_root - if args.allow_other: - args.allow_root = False - else: - args.allow_root = True - # check log_level if args.debug: args.log_level = "debug"