diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2017-02-25 10:16:57 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2017-02-25 10:16:57 +0100 |
commit | fdc8ecbc0c1d8a4b76ec653602c5ab06a9659c98 (patch) | |
tree | d711ac52e6b3f118c3a0865b12ee52dbade19f39 | |
parent | b197de0ccc0faf8b4b3da77a46750f39bf7acdb3 (diff) | |
download | gitpython-fdc8ecbc0c1d8a4b76ec653602c5ab06a9659c98.tar.gz |
fix(remote): assemble exception message completely
... before trying to substitute values in.
Fixes #575
-rw-r--r-- | git/remote.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py index 336ac5c3..e5480d0e 100644 --- a/git/remote.py +++ b/git/remote.py @@ -706,8 +706,8 @@ class Remote(LazyMixin, Iterable): if config.get_value('fetch', default=unset) is unset: msg = "Remote '%s' has no refspec set.\n" msg += "You can set it as follows:" - msg += " 'git config --add \"remote.%s.fetch +refs/heads/*:refs/heads/*\"'." % (self.name, self.name) - raise AssertionError(msg) + msg += " 'git config --add \"remote.%s.fetch +refs/heads/*:refs/heads/*\"'." + raise AssertionError(msg % (self.name, self.name)) finally: config.release() |