From 5dd598fb8f2a9109189fad6cf631811f12ce2130 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 13 Dec 2013 00:43:59 +0200 Subject: [PATCH] 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 --- gbp/git/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 10b9030..9f51d98 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) -- 2.7.4