MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/cafsindia/snap.cafsinfotech.in/vendor/czproject/git-php/src/Runners/OldGitRunner.php
<?php

	namespace CzProject\GitPhp\Runners;

	use CzProject\GitPhp\IRunner;


	class OldGitRunner implements IRunner
	{
		/** @var IRunner */
		private $runner;


		public function __construct(IRunner $runner = NULL)
		{
			$this->runner = $runner !== NULL ? $runner : new CliRunner;
		}


		public function run($cwd, array $args, array $env = NULL)
		{
			if (($key = array_search('--end-of-options', $args)) !== FALSE) {
				unset($args[$key]);
			}

			return $this->runner->run($cwd, $args, $env);
		}


		public function getCwd()
		{
			return $this->runner->getCwd();
		}
	}