GitRepository/add_remote_repo: fix the 'tags' argument
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 12 Dec 2013 22:43:59 +0000 (00:43 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 27 Mar 2014 19:30:37 +0000 (20:30 +0100)
Explicitly use --tags in git arguments - otherwise tags might not be
fetched.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/git/repository.py

index 10b903088fd844d45ec9f842f511b3259dfc18fb..9f51d9868d11a0a02424ef1ae9bd02add6b670c7 100644 (file)
@@ -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)