-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected ref refs/remotes/origin/main #18
Comments
Hmm... I wonder if you are using a custom refspec. If I just do a clean clone of this repo, for example: foo@bar:~$ git clone https://github.com/diffplug/spotless-changelog
<clone progress etc>
foo@bar:~$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = https://github.com/diffplug/spotless-changelog
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
remote = origin
merge = refs/heads/main So for the spotless default config: spotlessChangelog {
remote 'origin'
branch 'main'
} It is looking for I wonder if your origin fetch isn't Line 65 in 43e702a
smarter, so that it feeds through the origin fetch refspec. A worse option would be to replace Can you confirm the |
I observe:
these are the same. |
Bizarre. One thing is that it looks like spotless-changelog is on JGit Maybe try this workaround to force the latest JGit version to see if that fixes it? Also, what's in your |
My version of git is: It is not present - as I completely stick to the defaults. But also changing to:
is not changing anything and keeps failing with the above-mentioned issue. |
Looks like you are using Seems like some confusion leftover from a previous fix attempt. I would just use |
Indeed, this is true / finally works.
this is the next step - as I had set up SSH keys & was using the SSH URL I would have expected it to work - will try with the token. |
Works now, but |
As mentioned in #16 my issue is not yet fixed by the update to 2.0.1 I still get a:
when executing it.
And
refs/heads/origin/main
is not equal torefs/remotes/origin/main
.When I create a remote-tracking branch to get the
refs/remotes/xxx
: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
The text was updated successfully, but these errors were encountered: