Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit e8f50c5

Browse files
committed
Replaced 'all' flag with 'tags' flag
1 parent da4126b commit e8f50c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/GitHub.Api/Git/Tasks/GitFetchTask.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ class GitFetchTask : ProcessTask<string>
1010
private readonly string arguments;
1111

1212
public GitFetchTask(string remote,
13-
CancellationToken token, bool all = false, bool prune = false, IOutputProcessor<string> processor = null)
13+
CancellationToken token, bool tags = false, bool prune = false, IOutputProcessor<string> processor = null)
1414
: base(token, processor ?? new SimpleOutputProcessor())
1515
{
1616
Name = TaskName;
1717
var stringBuilder = new StringBuilder();
1818
stringBuilder.Append("fetch");
19-
20-
if (all)
19+
20+
if (prune)
2121
{
22-
stringBuilder.Append(" --all");
22+
stringBuilder.Append(" -p");
2323
}
2424

25-
if (prune)
25+
if (tags)
2626
{
27-
stringBuilder.Append(" -p");
27+
stringBuilder.Append(" --tags");
2828
}
2929

3030
if (!String.IsNullOrEmpty(remote))

0 commit comments

Comments
 (0)