Skip to content

Commit

Permalink
repo url
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwimmer committed Jan 7, 2024
1 parent 597686f commit e650b04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gimera/gimera.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ def __add_submodule(repo, config, all_config):
cache_dir = _get_cache_dir(repo, config)
repo.submodule_add(config.branch, f"file://{cache_dir}", relpath)
repo.X(*(git + ["submodule", "set-url", relpath, config.url]))
repo.X(*(git + ["add", ".gitmodules"]))
click.secho(f"Added submodule {relpath} pointing to {config.url}", fg="yellow")
if repo.staged_files:
repo.X("git", "commit", "-m", f"gimera added submodule: {relpath}")
Expand Down

0 comments on commit e650b04

Please sign in to comment.