Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option tags to FetchCommand #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/PHPGit/Command/FetchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -106,6 +107,7 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
//'force' => false,
'keep' => false,
'prune' => false,
'tags' => false,
));
}

Expand Down