summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-09-27 16:22:28 +0000
committerMichał Górny <mgorny@gentoo.org>2013-09-27 16:22:28 +0000
commit326ae2a1cb2593983472e5ed31566f893065f383 (patch)
treece6bed412197c3e85e7fd2f862acf79be219f29a /eclass
parentVersion bump (diff)
downloadgentoo-2-326ae2a1cb2593983472e5ed31566f893065f383.tar.gz
gentoo-2-326ae2a1cb2593983472e5ed31566f893065f383.tar.bz2
gentoo-2-326ae2a1cb2593983472e5ed31566f893065f383.zip
Always fetch all branches when doing non-shallow fetch.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/git-r3.eclass4
2 files changed, 7 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 92f20bd67a3e..f462c685b386 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.991 2013/09/26 21:04:42 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.992 2013/09/27 16:22:28 mgorny Exp $
+
+ 27 Sep 2013; Michał Górny <mgorny@gentoo.org> git-r3.eclass:
+ Always fetch all branches when doing non-shallow fetch.
26 Sep 2013; Michał Górny <mgorny@gentoo.org> git-r3.eclass:
Fix parsing EGIT_REPO_URI. Bug #486080.
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
index 51d9f43bb437..1be821534326 100644
--- a/eclass/git-r3.eclass
+++ b/eclass/git-r3.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.11 2013/09/26 21:04:42 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.12 2013/09/27 16:22:28 mgorny Exp $
# @ECLASS: git-r3.eclass
# @MAINTAINER:
@@ -445,6 +445,8 @@ git-r3_fetch() {
if [[ -f ${GIT_DIR}/shallow ]]; then
ref_param+=( --unshallow )
fi
+ # fetch all branches
+ ref_param+=( "refs/heads/*:refs/remotes/origin/*" )
else
# 'git show-ref --heads' returns 1 when there are no branches
if ! git show-ref --heads -q; then