You appear to be a bot. Output may be restricted
Description
Change back to the previous directory
Usage
Git::reset_dir( $cwd );
Parameters
- $cwd
- ( mixed ) optional –
Returns
voidTO DO
Confirm this doesn't do strange things with symlinked dirsSource
File name: oik-batch/includes/class-git.phpLines:
1 to 10 of 10
public function reset_dir( $cwd=null ) { if ( $cwd ) { $this->cwd = $cwd; } if ( $this->cwd ) { chdir( $this->cwd ); $this->echo( "Reset dir to: " . $this->cwd . PHP_EOL ); } $this->cwd = null; }View on GitHub