From 5c465fd3ecc6122dbc747fd70212f227aac02a19 Mon Sep 17 00:00:00 2001 From: "Amlesh Sivanantham (zamlz)" Date: Fri, 1 Feb 2019 20:04:30 -0800 Subject: [PATCH] shell should be called from self, removed debug statements --- pubs/plugs/git/git.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pubs/plugs/git/git.py b/pubs/plugs/git/git.py index 99cbdc9..a76c5a6 100644 --- a/pubs/plugs/git/git.py +++ b/pubs/plugs/git/git.py @@ -26,9 +26,7 @@ class GitPlugin(PapersPlugin): def command(self, conf, args): """Runs the git program in a shell""" - for a in args.arguments: - print(a) - GitPlugin.shell(' '.join([shell_quote(a) for a in args.arguments])) + self.shell(' '.join([shell_quote(a) for a in args.arguments])) def shell(self, cmd): subprocess.call('git -C {} {}'.format(self.pubsdir, cmd), shell=True)