summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-04-02 09:47:11 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-04-02 10:15:12 +0300
commite07b059fa11074aabe62622f6b5bdba8fdd651a3 (patch)
tree3a652690aa1095a67e0884800b2927f9580ed1b2
parent14e491eddc807e6a9bc237b358343823595b8a42 (diff)
downloadgit-buildpackage-e07b059fa11074aabe62622f6b5bdba8fdd651a3.tar.gz
git-buildpackage-e07b059fa11074aabe62622f6b5bdba8fdd651a3.tar.bz2
git-buildpackage-e07b059fa11074aabe62622f6b5bdba8fdd651a3.zip
Revert "CentOS compatibility: fix GitRepository.add_remote_repo"
This reverts commit d7ed865a5acf965f439f7c6b8a0f4fe6f62d0cbf. Gbp-Rpm: If 0%{?centos_ver} Change-Id: Id79507712b9709c85fb6f94253892e18926952f9 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-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 147ae8f3..c2b6aa0c 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -1235,7 +1235,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)