Fix Git error during project configuration - #2971
Conversation
|
Please rebase onto |
|
Done :) |
|
Can you rebase your local branch and force push please. Otherwise it pulls in those main branch changes. If you create your local branch from dev instead of main, it doesn't pull those in :) |
Previously project configuration would fail with "fatal: couldn't find remote ref d541301" (git v2.55.0) Per https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt-refspec, the <src> needs to be either a ref or a "**fully spelled** hex object name" This requirement is also mentioned in this SO answer: https://stackoverflow.com/a/30701724 After this change, project configuration now succeeds. 219812
a8af634 to
82ea992
Compare
|
Oh I didn't realise there were commits reachable from main that aren't reachable from dev. Should be fixed now. |
Yeah, it's mostly just documentation that gets opened against Thanks for the fix :) Seems that this issue only affects some build environments, as it works fine on my end. But merging as I have seen the same issue for another dependency in the past. |
|
My hunch is that it's probably related to which version of Git you have installed. |
Previously project configuration would fail with "fatal: couldn't find remote ref d541301" (git v2.55.0)
This affected almost all platformio commands too. E.g.
Per https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt-refspec, the argument needs to be either a ref (read: branch or tag) or a "fully spelled hex object name". The error appears to have been caused by the partial hex.
This requirement is also mentioned in this SO answer: https://stackoverflow.com/a/30701724
After this change, project configuration now succeeds.