Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove duplication
  • Loading branch information
Byron committed Jun 24, 2021
commit d4a22d19dc1f9b7b498d4a42902521f49be7f38d
2 changes: 1 addition & 1 deletion git/objects/submodule/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def add(cls, repo, name, path, url=None, branch=None, no_checkout=False, depth=N
mrepo = None
if url is None:
if not has_module:
raise ValueError("A URL was not given and an existing repository did not exist at %s" % path)
raise ValueError("A URL was not given and a repository did not exist at %s" % path)
# END check url
mrepo = sm.module()
urls = [r.url for r in mrepo.remotes]
Expand Down