summaryrefslogtreecommitdiff
path: root/gbp
diff options
context:
space:
mode:
Diffstat (limited to 'gbp')
-rw-r--r--gbp/git.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gbp/git.py b/gbp/git.py
index c523959..31d7cab 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -743,8 +743,7 @@ class GitRepository(object):
@param repo: repository to fetch from
@type repo: C{str}
"""
- if repo:
- args = [repo]
+ args = [repo] if repo else []
self._git_command("fetch", args)