summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-04-02 09:48:11 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-04-02 10:15:18 +0300
commit8232655462be23ba22552a4d0b97fe8883036e67 (patch)
tree7be298d1f30489074c24ec8013a4999a4bf14a7f
parente07b059fa11074aabe62622f6b5bdba8fdd651a3 (diff)
downloadgit-buildpackage-8232655462be23ba22552a4d0b97fe8883036e67.tar.gz
git-buildpackage-8232655462be23ba22552a4d0b97fe8883036e67.tar.bz2
git-buildpackage-8232655462be23ba22552a4d0b97fe8883036e67.zip
Revert "GitRepository/add_remote_repo: fix the 'tags' argument"
Which caused an unwanted behavior of not fetching refs/heads at all -- only tags were fetched. This reverts commit a574027f445ac1558aa292985236fe58113bd8de. Change-Id: Ic2a1afd26b70102b7e4f1209a397c4c144f710dd 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 c2b6aa0c..147ae8f3 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_cond(tags, '--tags', '--no-tags')
+ args.add_false(tags, '--no-tags')
args.add_true(fetch, '--fetch')
args.add(name, url)
self._git_command("remote", args.args)