snoyberg / githash

Compile git revision info into Haskell projects
BSD 3-Clause "New" or "Revised" License
33 stars 12 forks source link

Test failure with latest git CVE fix (2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, 2.37.4, 2.38.1) #27

Closed felixonmars closed 2 years ago

felixonmars commented 2 years ago

Upstream release notes: https://github.com/git/git/blob/master/Documentation/RelNotes/2.30.6.txt

RepoWithASubmodule
  getGitInfo
Cloning into '/tmp/with-submodule2290/1/2'...
fatal: transport 'file' not allowed
fatal: clone of '/tmp/with-submodule2290/2' into submodule path '/tmp/with-submodule2290/1/2' failed
    it makes sensible git info for a both the parent and the child module [✘]
  getGitRoot
Cloning into '/tmp/with-submodule2290/1/2'...
fatal: transport 'file' not allowed
fatal: clone of '/tmp/with-submodule2290/2' into submodule path '/tmp/with-submodule2290/1/2' failed
    it gets the expected git root for a both the parent and the child module [✘]
...
Failures:

  test/RepoWithASubmoduleSpec.hs:21:13:
  1) RepoWithASubmodule.getGitInfo it makes sensible git info for a both the parent and the child module
       uncaught exception: IOException of type OtherError
       readCreateProcess: git "submodule" "add" "/tmp/with-submodule2290/2" "2" (exit 128): failed

  To rerun use: --match "/RepoWithASubmodule/getGitInfo/it makes sensible git info for a both the parent and the child module/"

  test/RepoWithASubmoduleSpec.hs:38:13:
  2) RepoWithASubmodule.getGitRoot it gets the expected git root for a both the parent and the child module
       uncaught exception: IOException of type OtherError
       readCreateProcess: git "submodule" "add" "/tmp/with-submodule2290/2" "2" (exit 128): failed

  To rerun use: --match "/RepoWithASubmodule/getGitRoot/it gets the expected git root for a both the parent and the child module/"