Describe the bug (required)
I deleted the upstream tracking branch. Then a build fails.
Tell us about your plugin configuration (required)
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>10.0.0</version>
<configuration>
<generateGitPropertiesFile>false</generateGitPropertiesFile>
<injectAllReactorProjects>true</injectAllReactorProjects>
<runOnlyOnce>true</runOnlyOnce>
<useBranchNameFromBuildEnvironment>false</useBranchNameFromBuildEnvironment>
<useNativeGit>true</useNativeGit>
<verbose>true</verbose>
</configuration>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
</plugin>
Tell us about the Plugin version used (required)
10.0.0
Tell us about the Maven version used (required)
Apache Maven 3.9.14 (996c630dbc656c76214ce58821dcc58be960875b)
Java version: 21.0.10, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.17.0-23-generic", arch: "amd64", family: "unix"
Steps to Reproduce (required)
Checkout a new branch, push to origin/upstream, delete the upstream branch, and then try build.
git checkout -b git-commit-test
git push -u origin git-commit-test
git push origin --delete git-commit-test
./mvnw initialize
Are there any stacktraces or any error messages? (required)
[ERROR] Failed to execute goal io.github.git-commit-id:git-commit-id-maven-plugin:10.0.0:revision (get-the-git-infos) on project myproject: Failed to read ahead behind count: Git command exited with invalid status [128]: directory: `/git/project`, command: `git rev-list --right-only --count origin/mybranch...mybranch`, stdout: ``, stderr: `fatal: ambiguous argument 'origin/mybranch...mybranch': unknown revision or path not in the working tree.
Is there a (public) project where this issue can be reproduced? (optional)
No response
Your Environment (optional)
No response
Context (optional)
No response
Describe the bug (required)
I deleted the upstream tracking branch. Then a build fails.
Tell us about your plugin configuration (required)
Tell us about the Plugin version used (required)
10.0.0
Tell us about the Maven version used (required)
Steps to Reproduce (required)
Checkout a new branch, push to origin/upstream, delete the upstream branch, and then try build.
Are there any stacktraces or any error messages? (required)
Is there a (public) project where this issue can be reproduced? (optional)
No response
Your Environment (optional)
No response
Context (optional)
No response