From 1a68230477bf40aec4a6554ce1e59bbb491c19ce Mon Sep 17 00:00:00 2001 From: Clement Baillot Date: Fri, 2 Dec 2016 10:32:47 +0100 Subject: [PATCH] Add option tags to FetchCommand --- src/PHPGit/Command/FetchCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PHPGit/Command/FetchCommand.php b/src/PHPGit/Command/FetchCommand.php index 1302038..1c77d2e 100644 --- a/src/PHPGit/Command/FetchCommand.php +++ b/src/PHPGit/Command/FetchCommand.php @@ -98,6 +98,7 @@ public function all(array $options = array()) * - **append** (_boolean_) Append ref names and object names of fetched refs to the existing contents of .git/FETCH_HEAD * - **keep** (_boolean_) Keep downloaded pack * - **prune** (_boolean_) After fetching, remove any remote-tracking branches which no longer exist on the remote + * - **tags** (_boolean_) Fetch all tags from the remote (i.e., fetch remote tags refs/tags/* into local tags with the same name), in addition to whatever else would otherwise be fetched */ public function setDefaultOptions(OptionsResolverInterface $resolver) { @@ -106,6 +107,7 @@ public function setDefaultOptions(OptionsResolverInterface $resolver) //'force' => false, 'keep' => false, 'prune' => false, + 'tags' => false, )); }