Skip to content

Commit ea026f0

Browse files
author
Kazakov, Vadim
committed
fixed execute return values to coincide with correct execution (false -> no refresh, true -> refresh)
1 parent 13e0a9b commit ea026f0

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
@@ -33,20 +33,20 @@ public bool Execute(GitUIBaseEventArgs gitUiCommands)
3333
{
3434
if (string.IsNullOrEmpty(gitUiCommands.GitModule.GitWorkingDir))
3535
{
36-
return true;
36+
return false;
3737
}
3838

3939
var remotes = GetTfsRemotes(gitUiCommands.GitUICommands);
4040

4141
if (remotes.Any())
4242
{
4343
new GitTfsDialog(gitUiCommands.GitUICommands, PluginSettings, remotes).ShowDialog();
44-
return false;
44+
return true;
4545
}
4646

4747
MessageBox.Show("The active repository has no TFS remotes.", "git-tfs Error",
4848
MessageBoxButtons.OK, MessageBoxIcon.Error);
49-
return true;
49+
return false;
5050
}
5151

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

0 commit comments

Comments
 (0)