◐ Shell
clean mode source ↗

Fix command injection by stsewd · Pull Request #1518 · gitpython-developers/GitPython

Expand Up @@ -964,7 +964,7 @@ def fetch( args = [refspec]
proc = self.repo.git.fetch( self, *args, as_process=True, with_stdout=False, universal_newlines=True, v=verbose, **kwargs "--", self, *args, as_process=True, with_stdout=False, universal_newlines=True, v=verbose, **kwargs ) res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout) if hasattr(self.repo.odb, "update_cache"): Expand All @@ -991,7 +991,7 @@ def pull( self._assert_refspec() kwargs = add_progress(kwargs, self.repo.git, progress) proc = self.repo.git.pull( self, refspec, with_stdout=False, as_process=True, universal_newlines=True, v=True, **kwargs "--", self, refspec, with_stdout=False, as_process=True, universal_newlines=True, v=True, **kwargs ) res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout) if hasattr(self.repo.odb, "update_cache"): Expand Down Expand Up @@ -1034,6 +1034,7 @@ def push( be 0.""" kwargs = add_progress(kwargs, self.repo.git, progress) proc = self.repo.git.push( "--", self, refspec, porcelain=True, Expand Down