summaryrefslogtreecommitdiff
path: root/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'git.py')
-rw-r--r--git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git.py b/git.py
index bddca70..9a77c7c 100644
--- a/git.py
+++ b/git.py
@@ -198,8 +198,6 @@ class Repo:
def __init__(self, path, branch = None, name = None, info = None):
self.path = path
self.branch = branch
-
- # We don't need these, but provide them for the users' convenience.
self.name = name
self.info = info or SimpleNamespace()
@@ -303,6 +301,8 @@ class Repo:
cmd.patch = None
cmd.numstat = None
cmd.find_renames = None
+ if (self.info.root_diff):
+ cmd.root = None
# Note we intentionally do not use -z, as the filename is just for
# reference, and it is safer to let git do the escaping.