Commits

Andre Staltz  committed 19f80fc

removed shell=True from hg_command(), again

  • Participants
  • Parent commits 1334f06

Comments (0)

Files changed (2)

File src/hgapi.py

     def hg_command(self, *args):
         """Run a hg command in path and return the result.
         Throws on error."""
-        proc = Popen(["hg", "--cwd", self.path.encode(sys.getfilesystemencoding())] + list(args), stdout=PIPE, stderr=PIPE, shell=True)
+        proc = Popen(["hg", "--cwd", self.path.encode(sys.getfilesystemencoding())] + list(args), stdout=PIPE, stderr=PIPE)
 
         if platform.system() == 'Windows':
             out, err = [x.decode('cp1252') for x in  proc.communicate()]

File src/hypergrasscore.py

 	if 'HG_PENDING' in os.environ:
 		rootfolder = os.environ['HG_PENDING']
 	elif repo.config('bundle','mainreporoot'):
-		rootfolder = repo.config('bundle','mainreporoot')
+		rootfolder = repo.config('bundle','mainreporoot') 
 	else:
 		rootfolder = os.path.abspath(".")
 	todofilename = repo.config('hypergrass','todofile')