commit:     c87cd3213723459e1b2957cbf0f35f3a753d11b6
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 19 09:02:49 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 22 18:58:57 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=c87cd321

sync/git: refactor fetch git_cmd into f-string

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/1135
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/sync/modules/git/git.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/portage/sync/modules/git/git.py 
b/lib/portage/sync/modules/git/git.py
index a2c96e8098..1914122d9d 100644
--- a/lib/portage/sync/modules/git/git.py
+++ b/lib/portage/sync/modules/git/git.py
@@ -325,11 +325,7 @@ class GitSync(NewBase):
                 elif not quiet:
                     writemsg_level(" ".join(git_set_remote_url_cmd) + "\n")
 
-        git_cmd = "{} fetch {}{}".format(
-            self.bin_command,
-            git_remote,
-            git_cmd_opts,
-        )
+        git_cmd = f"{self.bin_command} fetch {git_remote}{git_cmd_opts}"
 
         if not quiet:
             writemsg_level(git_cmd + "\n")

Reply via email to