From 919de84e24d9fc8d4a2fda6cb46cac79744522a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Tue, 28 Jun 2016 21:47:50 +0200 Subject: store repo topdir in VCS class --- MgaRepo/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MgaRepo/git.py') diff --git a/MgaRepo/git.py b/MgaRepo/git.py index 07d57ac..08cccf6 100644 --- a/MgaRepo/git.py +++ b/MgaRepo/git.py @@ -19,8 +19,8 @@ class GITLogEntry(VCSLogEntry): class GIT(VCS): vcs_dirname = ".git" vcs_name = "git" - def __init__(self): - VCS.__init__(self) + def __init__(self, path=os.path.curdir): + VCS.__init__(self, path) self.vcs_command = config.get("global", "git-command", ["git"]) self.vcs_supports['clone'] = True self.env_defaults = {"GIT_SSH": self.vcs_wrapper} -- cgit v1.2.1