Skip to content

Commit

Permalink
Merge branch 'release/0.6.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
OpherV committed Oct 5, 2017
2 parents a2eb4d9 + e63246f commit 583b912
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<name>Git Flow Integration</name>
<id>Gitflow</id>
<description>Git Flow Integration</description>
<version>0.6.2</version>
<version>0.6.3</version>
<category>VCS Integration</category>
<vendor url="http://www.opherv.com">Opher Vishnia</vendor>

<depends>com.intellij.modules.vcs</depends>
<depends>com.intellij.tasks</depends>
<depends>Git4Idea</depends>

<idea-version since-build="171.0" until-build="172.*"/>
<idea-version since-build="162.0" until-build="173.*"/>

<actions>
<action id="Gitflow.OpenGitflowPopup" class="gitflow.actions.OpenGitflowPopup"
Expand Down
3 changes: 2 additions & 1 deletion src/gitflow/GitflowBranchUtilManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

/**
* This class maps repos to their corresponding branch utils
* Note that the static class is used across projects
*/

public class GitflowBranchUtilManager {
private static HashMap<GitRepository, GitflowBranchUtil> repoBranchUtilMap;

Expand All @@ -32,7 +34,6 @@ static public void update(Project project){
if (repoBranchUtilMap == null){
repoBranchUtilMap = new HashMap<GitRepository, GitflowBranchUtil>();
}
repoBranchUtilMap.clear();

List<GitRepository> gitRepositories = GitUtil.getRepositoryManager(project).getRepositories();

Expand Down
8 changes: 7 additions & 1 deletion src/gitflow/actions/GitflowAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ public class GitflowAction extends DumbAwareAction {

@Override
public void actionPerformed(AnActionEvent e) {
setup(e.getProject());
Project project = e.getProject();

// if repo isn't set explicitly, such as in the case of starting from keyboard shortcut, infer it
if (myRepo == null){
myRepo = GitBranchUtil.getCurrentRepository(project);
}
setup(project);
}

public void setup(Project project){
Expand Down
4 changes: 2 additions & 2 deletions src/gitflow/ui/AbstractBranchStartDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public void validateBranchName() {
}

if (branchNameTextField.getText().contains("&")){
AbstractBranchStartDialog.this.setOKActionEnabled(false);
AbstractBranchStartDialog.super.setOKActionEnabled(false);
}
else{
AbstractBranchStartDialog.this.setOKActionEnabled(true);
AbstractBranchStartDialog.super.setOKActionEnabled(true);
}
}
});
Expand Down

0 comments on commit 583b912

Please sign in to comment.