shell should be called from self, removed debug statements

This commit is contained in:
Amlesh Sivanantham (zamlz) 2019-02-01 20:04:30 -08:00
parent 5789916953
commit 5c465fd3ec
No known key found for this signature in database
GPG Key ID: 882C395C3B28902C

View File

@ -26,9 +26,7 @@ class GitPlugin(PapersPlugin):
def command(self, conf, args): def command(self, conf, args):
"""Runs the git program in a shell""" """Runs the git program in a shell"""
for a in args.arguments: self.shell(' '.join([shell_quote(a) for a in args.arguments]))
print(a)
GitPlugin.shell(' '.join([shell_quote(a) for a in args.arguments]))
def shell(self, cmd): def shell(self, cmd):
subprocess.call('git -C {} {}'.format(self.pubsdir, cmd), shell=True) subprocess.call('git -C {} {}'.format(self.pubsdir, cmd), shell=True)