Skip to content

Commit e422cf8

Browse files
committed
Merge pull request #15 from yads/master
fixed execute return values to coincide with correct execution (false -> no refresh, true -> refresh)
2 parents d458b99 + ea026f0 commit e422cf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GitTfsPlugin.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ public override bool Execute(GitUIBaseEventArgs gitUiCommands)
1313
{
1414
if (string.IsNullOrEmpty(gitUiCommands.GitModule.WorkingDir))
1515
{
16-
return true;
16+
return false;
1717
}
1818

1919
var remotes = GetTfsRemotes(gitUiCommands.GitUICommands);
2020

2121
if (remotes.Any())
2222
{
2323
new GitTfsDialog(gitUiCommands.GitUICommands, PluginSettings, remotes).ShowDialog();
24-
return false;
24+
return true;
2525
}
2626

2727
MessageBox.Show("The active repository has no TFS remotes.", "git-tfs Error",
2828
MessageBoxButtons.OK, MessageBoxIcon.Error);
29-
return true;
29+
return false;
3030
}
3131

3232
private static IEnumerable<string> GetTfsRemotes(IGitUICommands commands)

0 commit comments

Comments
 (0)