diff options
author | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-10-04 08:27:31 +0200 |
---|---|---|
committer | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-10-04 08:27:31 +0200 |
commit | 48ee59d37ee1d7773ba90896d7cb4742e0de8861 (patch) | |
tree | df09d4e833fbcb814852602d7c306b89d2f1651c /MgaRepo | |
parent | 73dff39c866bd259faff639cc8b739f438ddc143 (diff) | |
download | mgarepo-48ee59d37ee1d7773ba90896d7cb4742e0de8861.tar mgarepo-48ee59d37ee1d7773ba90896d7cb4742e0de8861.tar.gz mgarepo-48ee59d37ee1d7773ba90896d7cb4742e0de8861.tar.bz2 mgarepo-48ee59d37ee1d7773ba90896d7cb4742e0de8861.tar.xz mgarepo-48ee59d37ee1d7773ba90896d7cb4742e0de8861.zip |
fix 'mgarepo sync -d' for git-svn repos
Diffstat (limited to 'MgaRepo')
-rw-r--r-- | MgaRepo/git.py | 8 |
1 files changed, 5 insertions, 3 deletions
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()] |