branch name with forward slash: unknown revision or path not in the working tree
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpad-buildd |
New
|
Undecided
|
Unassigned |
Bug Description
Using a git recipe with a branch name that contains a forward slash results in the following error:
"unknown revision or path not in the working tree"
The following sample recipe shows an example with branch name "debian/latest":
# git-build-recipe format 0.4 deb-version 2.13.0+dfsg-1
lp:~reviczky/freetype/+git/freetype-debian debian/latest
The error message is as follows:
RUN ['git-build-
fatal: ambiguous argument '691a63d7074836
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: not a valid object name: 691a63d70748362
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
pristine-tar: command failed: git archive --format=tar 691a63d70748362
/usr/lib/
warnings.
Initialized empty Git repository in /home/buildd/
From https:/
* [new branch] debian/bullseye -> source/
* [new branch] debian/buster -> source/
* [new branch] debian/latest -> source/
* [new branch] debian/stretch -> source/
* [new branch] pristine-tar -> source/pristine-tar
* [new branch] upstream/latest -> source/
* [new tag] debian/
* [new tag] debian/
* [new tag] debian/
* [new tag] debian/
Note: switching to '31b669dbb7b420
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 31b669db debian/changelog: Update for FreeType Debian release 2.13.0+dfsg-1
Traceback (most recent call last):
File "/bin/git-
load_
File "/usr/lib/
extract_
File "/usr/lib/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
RUN: /usr/share/
Scanning for processes to kill in build RECIPEBRANCHBUI
Full log: https:/
no longer affects: | launchpad |