Skip to content

Commit b1d8c94

Browse files
committed
Merge pull request kbjr#8 from woolfg/gitpull
git pull method added
2 parents 2075583 + 7ac5e4a commit b1d8c94

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Git.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,20 @@ public function push($remote, $branch)
448448
return $this->run("push --tags $remote $branch");
449449
}
450450

451+
/**
452+
* Pull specific branch from remote
453+
*
454+
* Accepts the name of the remote and local branch
455+
*
456+
* @param string $remote
457+
* @param string $branch
458+
* @return string
459+
*/
460+
public function pull($remote, $branch)
461+
{
462+
return $this->run("pull $remote $branch");
463+
}
464+
451465
/**
452466
* Sets the project description.
453467
*

0 commit comments

Comments
 (0)