From f5c45b598aeab8f1e9814bb0b05590d582dc9968 Mon Sep 17 00:00:00 2001 From: Max Fan Date: Wed, 23 Jun 2021 14:20:11 -0400 Subject: [PATCH 1/3] Fix exsit typo --- git/objects/submodule/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index b03fa22a5..49d6aae14 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -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 existing repository did not exsit at %s" % path) + raise ValueError("A URL was not given and existing repository did not exist at %s" % path) # END check url mrepo = sm.module() urls = [r.url for r in mrepo.remotes] From e9a393f897c6145e7f9055275d23ff7cb0691aff Mon Sep 17 00:00:00 2001 From: Max Fan Date: Wed, 23 Jun 2021 14:21:39 -0400 Subject: [PATCH 2/3] Add missing article to error message --- git/objects/submodule/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index 49d6aae14..cac9618da 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -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 existing repository did not exist at %s" % path) + raise ValueError("A URL was not given and an existing repository did not exist at %s" % path) # END check url mrepo = sm.module() urls = [r.url for r in mrepo.remotes] From d4a22d19dc1f9b7b498d4a42902521f49be7f38d Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 24 Jun 2021 08:00:18 +0800 Subject: [PATCH 3/3] remove duplication --- git/objects/submodule/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index cac9618da..8cf4dd1eb 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -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]