When trying to generate release notes we're seeing the following error:

```
Execution failed for task ':generateReleaseNotes'.
> Failed to find git tags prior to [v8.1.1-SNAPSHOT]
```

I believe the root cause is our handling of version qualifiers [here](https://github.com/elastic/elasticsearch/blob/bafdcbd2f179c54e3a1479ef53da7bc959f57cd5/build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GenerateReleaseNotesTask.java#L182). Since the current version is _always_ a snapshot we seem to not correctly identified older release versions.
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GenerateReleaseNotesTask.java
File nextFile = filesIterator.next();
                if (filesInTreeForVersion.contains(nextFile.getName())) {
                    
                    filesForVersion.add(nextFile);
                    filesIterator.remove();
                }
            }
        });
        
        partitionedFiles.put(currentVersion, mutableAllFilesInCheckout);
        return partitionedFiles;
    }
    /**
     * Ensure the upstream git remote is up-to-date. The upstream is whatever git remote references `elastic/elasticsearch`.
     * @param gitWrapper used to call `git`
     */
    private static void findAndUpdateUpstreamRemote(GitWrapper gitWrapper) {
        LOGGER.info("Finding upstream git remote");
        
        String upstream = gitWrapper.listRemotes()
            .entrySet()
            .stream()
            .filter(entry -> entry.getValue().contains("elastic/elasticsearch"))
            .findFirst()
            .map(Map.Entry::getKey)
            .orElseThrow(
                () -> new GradleException(
                    "I need to ensure the git tags are up-to-date, but I couldn't find a git remote for [elastic/elasticsearch]"
                )
            );