GitFetchResult (@NotNull GitRepository repository) { // TODO need to have a fair compound result here GitFetchResult fetchResult = myFetchAll ? fetchAll(repository) : fetchCurrentRemote(repository); repository.update(); repository.getRepositoryFiles().refreshTagsFiles(); return fetchResult; }