Skip to content

repocheck fails with "disallowed submodule url"

Summary

Repository check of (at least) one ancient, already archived repository fails here recently with

E, ... ERROR -- : ... Could not fsck repository: error in blob b5eb6db4a...: gitmodulesUrl: disallowed submodule url: https://XXXXXXXX,de/xxxxxxxxxx

(triggered probably by the , vs. . typo).

This bad commit happened before such a check was implemented and it is impossible to fix it in the repository.

It should be possible to ignore these errors during repository check.

Seen with 17.0 the first time.

Results of GitLab environment info

Expand for output related to GitLab environment info
System information
System: 
Current User:   git
Using RVM:      no
Ruby Version:   3.1.5p253
Gem Version:    3.5.9
Bundler Version:2.5.9
Rake Version:   13.0.6
Redis Version:  7.0.15
Sidekiq Version:7.1.6
Go Version:     unknown

GitLab information
Version:        17.0.0
Revision:       d29650c9a04
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     PostgreSQL
DB Version:     15.6
Using LDAP:     no
Using Omniauth: yes
Omniauth Providers: 

GitLab Shell
Version:        14.35.0
Repository storages:
- default:      unix:/run/gitlab/gitaly/gitaly.socket
GitLab Shell path:              /opt/gitlab/embedded/service/gitlab-shell

Gitaly
- default Address:      unix:/run/gitlab/gitaly/gitaly.socket
- default Version:      17.0.0
- default Git Version:  2.44.0.gl2