Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions gitfs/utils/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down Expand Up @@ -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"
Expand Down