diff options
Diffstat (limited to 'patches/replicant_prepare_patch.py')
-rwxr-xr-x | patches/replicant_prepare_patch.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/patches/replicant_prepare_patch.py b/patches/replicant_prepare_patch.py index 57f8d6c..c1f52e7 100755 --- a/patches/replicant_prepare_patch.py +++ b/patches/replicant_prepare_patch.py @@ -94,8 +94,10 @@ def get_config(): class GitRepo(object): def __init__(self, config, directory): self.config = config - self.directory = re.sub('/+$', '', directory) - if self.directory: + self.directory = None + + if directory: + self.directory = re.sub('/+$', '', directory) self.git = sh.git.bake("-C", self.directory) else: self.git = sh.git.bake() |