From 5dd598fb8f2a9109189fad6cf631811f12ce2130 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 13 Dec 2013 00:43:59 +0200 Subject: 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(-) (limited to 'gbp') 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) -- cgit v1.2.3