-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
As mentioned in #16 my issue is not yet fixed by the update to 2.0.1 I still get a:
gradle changelogPush
> Task :changelogCheck FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':changelogCheck'.
> Expected ref refs/remotes/origin/main
when executing it.
NOTICE: I run it in a normal non-bare repository where the remote is named origin and the branch origin/main as required by the default settings.
git ls-remote
From [email protected]:geoHeil/my_repository.git
hash1 HEAD
hash2 refs/heads/origin/main
And refs/heads/origin/main is not equal to refs/remotes/origin/main.
When I create a remote-tracking branch to get the refs/remotes/xxx:
git checkout --track origin/main
Branch 'main' folgt nun lokalem Branch 'origin/main'.
Zu neuem Branch 'main' gewechselt
my-repo git:(main) git ls-remote
From .
c1 HEAD
c1 refs/heads/main
c1 refs/heads/origin/main
c1 refs/remotes/origin/HEAD
c1 refs/remotes/origin/origin/main
However, refs/remotes/origin/origin/main still is not equal to: refs/remotes/origin/main and thus spotless-changelog fails again with the same error.
Here is my stack trace for version 2.0.1 and Gradle version 6.8.3
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':changelogCheck'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$3(ExecuteActionsTaskExecuter.java:186)
...
Caused by: java.lang.NullPointerException: Expected ref refs/remotes/origin/main
at com.diffplug.spotless.changelog.GitActions.checkCanPush(GitActions.java:66)
at com.diffplug.spotless.changelog.gradle.ChangelogPlugin$CheckTask.check(ChangelogPlugin.java:99)
...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels