[Bug 1993586] Re: Cannot add submodule using file transport

Bug Watch Updater 1993586 at bugs.launchpad.net
Sun Dec 18 13:10:01 UTC 2022


** Changed in: check-manifest (Debian)
       Status: Unknown => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to git in Ubuntu.
https://bugs.launchpad.net/bugs/1993586

Title:
  Cannot add submodule using file transport

Status in check-manifest package in Ubuntu:
  In Progress
Status in git package in Ubuntu:
  Invalid
Status in guilt package in Ubuntu:
  New
Status in mercurial package in Ubuntu:
  In Progress
Status in check-manifest package in Debian:
  Confirmed
Status in guilt package in Debian:
  Unknown

Bug description:
  On ubuntu 22.04, somewhere between git=1:2.34.1-1ubuntu1 and
  git=1:2.34.1-1ubuntu1.5, the ability to add a submodule using the
  local file system broke

  ## Reproduce ##

  docker run -it --rm ubuntu:22.04
  apt-get update
  apt-get install -y git=1:2.34.1-1ubuntu1.5

  git config --global user.email "you at example.com"
  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/the_bar'...
  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/the_bar'...
  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.34.1-1ubuntu1 # This works

  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://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
          500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
          100 /var/lib/dpkg/status
       1:2.34.1-1ubuntu1 500
          500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages

  ## lsb_release -rd ##

  Description:    Ubuntu 22.04 LTS
  Release:        22.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/check-manifest/+bug/1993586/+subscriptions




More information about the foundations-bugs mailing list