Page MenuHomePhorge

Diffusion: fix support for git version 1.8.3.1 ("This path was a submodule at ...") - probably since git < 2.5.0
Closed, WontfixPublic

Description

It seems these files and maybe others:

https://we.phorge.it/source/phorge/browse/master/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php

https://we.phorge.it/source/phorge/browse/master/src/applications/diffusion/query/filecontent/DiffusionGitFileContentQuery.php

They executes similar stuff:

git cat-file -t -- <hash>:<file>

But it seems this cannot work in git version 1.8.3.1, since git thinks that "--" is a normal value.

It seems this error causes a series of weird assumptions and so it generates this misleading frontend warning:

This path was a submodule at R123:5378198ea123asdlol

To fix, we can:

  • Identify when support to "--" was introduced in git cat-file
  • Add a compatibility patch for previous versions, or just mention this as minimum git version and wontfix

Related discussion:

https://unix.stackexchange.com/questions/740615/git-cat-file-when-was-introduced-the-escape-parameter

Related Objects

Event Timeline

valerio.bozzolan triaged this task as Normal priority.
valerio.bozzolan created this object in space S1 Public.
valerio.bozzolan renamed this task from Diffusion: fix support for git version 1.8.3.1 to Diffusion: fix support for git version 1.8.3.1 ("This path was a submodule at ...").Mar 22 2023, 15:40
valerio.bozzolan updated the task description. (Show Details)
valerio.bozzolan renamed this task from Diffusion: fix support for git version 1.8.3.1 ("This path was a submodule at ...") to Diffusion: fix support for git version 1.8.3.1 ("This path was a submodule at ...") - probably since git < 2.5.0.Mar 23 2023, 22:06

The strange part is that much older versions are cited as problems elsewhere.

In any case, I merely pointed this out in a way that is simply ignorable by the user, and with enough information to form their own opinion and come here and say something to the contrary.