Closed Destrocamil closed 7 months ago
According to the exception it seems like a problem when analyzing the .gitmodules
file of the parent or any child repository. The part that raises the exception tries to split the URL of a repository by the //
string, so somehow a repository without a URL containing //
is pulled in (perhaps some local repository?).
Since it is a recursive call, it is not so obvious weather the parent .gitmodules
or any of the child .gitmodules
is triggering the error. Can you run the command with debugging output by setting the environment variable GITCACHE_LOGLEVEL
to Debug
? I guess that will allow us to identify the module or at least give a better overview. The .gitmodules
of the parent and recursively all children would also very helpful. Can you post those outputs/files here?
I just tried that:
2024-04-25 12:01:08 Python executable: /home/jenkins/bin/gitcache_v1.0.13_Ubuntu20.04_x86_64
2024-04-25 12:01:08 Called as ['git', 'submodule', 'update', '--init', '--recursive']
2024-04-25 12:01:08 handle_git_command(['git'], ['submodule', 'update', '--init', '--recursive']) started
2024-04-25 12:01:08 Found global options [], command 'submodule_update', command options '['--init', '--recursive']' and arguments [].
2024-04-25 12:01:08 Python executable: /home/jenkins/bin/gitcache_v1.0.13_Ubuntu20.04_x86_64
2024-04-25 12:01:08 Called as ['git', 'submodule', 'init']
2024-04-25 12:01:08 handle_git_command(['git'], ['submodule', 'init']) started
2024-04-25 12:01:08 Found global options [], command 'submodule_init', command options '[]' and arguments [].
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
2024-04-25 12:01:08 Loading configuration file /home/jenkins/.gitcache/config.
Traceback (most recent call last):
File "gitcache.py", line 51, in <module>
File "git_cache/git_command.py", line 117, in handle_git_command
File "git_cache/commands/submodule_update.py", line 114, in git_submodule_update
IndexError: list index out of range
[1347714] Failed to execute script 'gitcache' due to unhandled exception!
I just figured the simplest configuration to reproduce this:
have a submodule in a relative path form, e.g: ../<submodule repo>.git
and clone the main repo as git@github.com:<repo>
.
Hello, I am trying to use gitcache but it throws me an error.
If I run simply
git submodule update (...)
it works, butgitcache
shows 0 stats. I created the symlink andgitcache
is beforegit
in thePATH
.Any help is appreciated! Thanks a lot