From 48ee59d37ee1d7773ba90896d7cb4742e0de8861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Tue, 4 Oct 2016 08:27:31 +0200 Subject: fix 'mgarepo sync -d' for git-svn repos --- MgaRepo/git.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'MgaRepo') diff --git a/MgaRepo/git.py b/MgaRepo/git.py index 4e763f8..670bfa7 100644 --- a/MgaRepo/git.py +++ b/MgaRepo/git.py @@ -90,13 +90,15 @@ class GIT(VCS): return None def status(self, path, **kwargs): - cmd = ["status", path + '@' if '@' in path else path] + cmd = ["status", "--porcelain", path + '@' if '@' in path else path] if kwargs.get("verbose"): cmd.append("-v") if kwargs.get("noignore"): - cmd.append("-u") + cmd.append("--ignored") if kwargs.get("quiet"): - cmd.append("-s") + cmd.append("-uno") + else: + cmd.append("-uall") status, output = self._execVcs(*cmd, **kwargs) if status == 0: return [(x[0], x[8:]) for x in output.splitlines()] -- cgit v1.2.1