summaryrefslogtreecommitdiff
path: root/gbp
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-12-13 00:43:59 +0200
committerGuido Günther <agx@sigxcpu.org>2014-03-27 20:30:37 +0100
commit5dd598fb8f2a9109189fad6cf631811f12ce2130 (patch)
tree184fedf2bd40b243035a7522d9dc8e4cb795cf04 /gbp
parentd8f55da007637de916c6ab067ebd22f2227e3aa0 (diff)
downloadgit-buildpackage-5dd598fb8f2a9109189fad6cf631811f12ce2130.tar.gz
git-buildpackage-5dd598fb8f2a9109189fad6cf631811f12ce2130.tar.bz2
git-buildpackage-5dd598fb8f2a9109189fad6cf631811f12ce2130.zip
GitRepository/add_remote_repo: fix the 'tags' argument
Explicitly use --tags in git arguments - otherwise tags might not be fetched. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp')
-rw-r--r--gbp/git/repository.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 10b90308..9f51d986 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -1093,7 +1093,7 @@ class GitRepository(object):
@type fetch: C{bool}
"""
args = GitArgs('add')
- args.add_false(tags, '--no-tags')
+ args.add_cond(tags, '--tags', '--no-tags')
args.add_true(fetch, '--fetch')
args.add(name, url)
self._git_command("remote", args.args)