New: support/download: git version=master broken
https://bugs.busybox.net/show_bug.cgi?id=11061
Bug ID: 11061
Summary: support/download: git version=master broken
Product: buildroot
Version: 2018.05
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: posted at heine.so
CC: buildroot at uclibc.org
Target Milestone: ---
Hi,
since the latest rework in the git downloader component setting the version to the 'master' branch is not working anymore.
The error I see:
Could not fetch special ref 'master'; assuming it is not special. Commit 'master' does not exist in this repository
using another branch is working fine. If I use another branch first and then change the package to master it is switching the branch just fine and builds.
I tried some analysis:
When I use the command from [1] I get:
Quoted 1 line
git fetch origin master:master
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
fatal: The remote end hung up unexpectedly
Quoted 1 line
git rev-parse --verify "master^{commit}"
fatal: Needed a single revision
So there seems to be a clash between the local master and the remote master in this case.
As said before, all this works when I first start the repo creation with another branch and then switch to master.
Regards,
Michael
[1] https://git.buildroot.org/buildroot/tree/support/download/git#n125
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 11061] support/download: git version=master broken
https://bugs.busybox.net/show_bug.cgi?id=11061
Ricardo Martincoski <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
Assignee|unassigned at buildroot.uclibc |ricardo.martincoski at datacom
|.org |.ind.br--- Comment #1 from Ricardo Martincoski <[email protected]> --- As stated in the manual, Buildroot does not support it: "Do not use a branch name as version; it does not work"
If some uses of branch do work it's only by change. It can stop work at any new release.
For details, see this thread:
http://lists.busybox.net/pipermail/buildroot/2018-May/221279.html
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 11061] support/download: git version=master broken
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=11061
--- Comment #2 from Ricardo Martincoski <[email protected]> --- (In reply to Ricardo Martincoski from comment #1)
*by chance* is what I meant to say
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.