private void checkRepository() {
		Project project = tool.getProject();
		if (project != null) {
			repository = project.getRepository();
		}
		else if (repository != null) {
			repository = null;
		}
	}
Determines the project repository for tool associated with this action.
The repository may be null.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/projectdata/actions/VersionControlAction.java