Cannot add submodule using file transport
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
check-manifest (Debian) |
Fix Released
|
Unknown
|
|||
check-manifest (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Hasenack | ||
git (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
guilt (Debian) |
Fix Released
|
Unknown
|
|||
guilt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
mercurial (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Hasenack |
Bug Description
On ubuntu 22.04, somewhere between git=1:2.
## Reproduce ##
docker run -it --rm ubuntu:22.04
apt-get update
apt-get install -y git=1:2.
git config --global user.email "<email address hidden>"
git config --global user.name "Your Name"
git config --global init.defaultBranch main
mkdir -p /tmp/foo
mkdir -p /tmp/bar
cd /tmp/bar
git init .
touch hi
git add hi
git commit -m "Init"
cd /tmp/foo
git init .
touch bye
git add bye
git commit -m "Initial"
git submodule add /tmp/bar the_bar
## Expected Output ##
Initialized empty Git repository in /tmp/bar/.git/
[main (root-commit) 7583952] Init
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 hi
Initialized empty Git repository in /tmp/foo/.git/
[main (root-commit) 7ee5648] Initial
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 bye
Cloning into '/tmp/foo/
done.
## Actual Output ##
Initialized empty Git repository in /tmp/bar/.git/
[main (root-commit) 7583952] Init
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 hi
Initialized empty Git repository in /tmp/foo/.git/
[main (root-commit) 7ee5648] Initial
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 bye
Cloning into '/tmp/foo/
fatal: transport 'file' not allowed
fatal: clone of '/tmp/bar' into submodule path '/tmp/foo/the_bar' failed
## Workaround ##
Installing a previous version of git works
apt-get install -y git=1:2.
So somewhere in the last 4 releases, something broke
## apt-cache policy git ##
git:
Installed: 1:2.34.1-1ubuntu1.5
Candidate: 1:2.34.1-1ubuntu1.5
Version table:
*** 1:2.34.1-1ubuntu1.5 500
500 http://
500 http://
100 /var/lib/
1:
500 http://
## lsb_release -rd ##
Description: Ubuntu 22.04 LTS
Release: 22.04
CVE References
tags: | added: update-excuse |
summary: |
- Cannot add submodule using file transport + DEP8 failure: Cannot add submodule using file transport |
summary: |
- DEP8 failure: Cannot add submodule using file transport + Cannot add submodule using file transport |
Changed in check-manifest (Ubuntu): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
status: | New → In Progress |
Changed in check-manifest (Debian): | |
status: | Unknown → Confirmed |
Changed in check-manifest (Debian): | |
status: | Confirmed → Fix Released |
Changed in guilt (Debian): | |
status: | Unknown → New |
Changed in guilt (Debian): | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.