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

Conversation

@StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Jul 5, 2017

@StanleyGoldman StanleyGoldman changed the base branch from master to fixes/settings-view-git-remote-update July 5, 2017 15:59
RepositoryManager.ActiveRemote.Value.Name.Should().Be("origin");
RepositoryManager.ActiveRemote.Value.Url.Should().Be("https://github.com/EvilStanleyGoldman/IOTestsRepo.git");

RepositoryManager.Repository.CloneUrl.Should().Be("https://github.com/EvilStanleyGoldman/IOTestsRepo");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shana would you have expected this value?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah? That looks about right

Refactoring BaseWindow and Subview to better handle initialization
RepositoryManager.ActiveRemote.HasValue.Should().BeFalse();

RepositoryManager.Repository.CloneUrl.Should().BeNull();
RepositoryManager.Repository.Owner.Should().BeNull();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cause of the bug is the reason why these tests fail


GUILayout.FlexibleSpace();

GUI.enabled = currentRemote != null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should get into the habit of using EditorGUI.Begin/EndDisabledGroup rather than setting GUI.enabled directly. Those utility methods handle nesting properly. (There's also EditorGUI.DisabledScope, for an IDisposable way of doing things.)

@shana
Copy link
Member

shana commented Jul 7, 2017

This PR needs more detail on exactly what is going wrong, with repro steps.

@shana
Copy link
Member

shana commented Jul 7, 2017

Actually, closing this as it has nothing other than tests, might as well fix the original branch.

@shana shana closed this Jul 7, 2017
@shana shana deleted the fixes/header-view-git-remote-update branch July 7, 2017 12:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants