git: fatal: Couldn't find remote ref HEAD
Hi
I am building a package using git SCM and got an fatal error with the below recipe.
What I am missing?
Git version:
git version 2.7.4
git-build-recipe 0.3.4~git201611
Building recipe:
# git-build-recipe format 0.4 deb-version {debupstream}
lp:~zosrothko/poco/+git/kampbell-develop develop
nest-part debian lp:~zosrothko/poco/+git/distro Linux/Ubuntu/
RUN ['git-build-
Traceback (most recent call last):
File "/usr/lib/
fetch_
File "/usr/lib/
"refs/
File "/usr/lib/
**kwargs)
File "/usr/lib/
**kwargs)
File "/usr/lib/
output=stdout, stderr=stderr)
subprocess.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
build_
File "/usr/lib/
_build_
File "/usr/lib/
pull_
File "/usr/lib/
raise FetchFailed(
gitbuildrecipe.
fatal: Couldn't find remote ref HEAD
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Colin Watson
- Solved:
- 2017-03-30
- Last query:
- 2017-03-30
- Last reply:
- 2017-03-30
|
|
#1 |
The "Couldn't find remote ref HEAD" error is a bit mysterious and I can't reproduce that locally. It's possible that that was some kind of temporary problem with the import that went away when the importer next ran.
There is one thing definitely wrong with your recipe, though: you need to write "2.0.0" rather than "branch:2.0.0". When I make that change locally, git-build-recipe succeeds, so you should try making that change to https:/
| Francis ANDRE (zosrothko) said : | #2 |
Thanks for your dagnostic. It works.
| Francis ANDRE (zosrothko) said : | #3 |
Thanks Colin Watson, that solved my question.
