summaryrefslogtreecommitdiff
path: root/eclass/git-2.eclass
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-04-17 23:16:06 +0200
committerTomas Chvatal <scarabeus@gentoo.org>2011-04-17 23:16:23 +0200
commit88758ab3034fb7a6f0e6f8805435b0369584eef9 (patch)
tree437d7a92375571ced03328348123e46a818e8cc9 /eclass/git-2.eclass
parent5169de3e71b859ed7a43ab2a3f18685795935f74 (diff)
downloadkde-88758ab3034fb7a6f0e6f8805435b0369584eef9.tar.gz
kde-88758ab3034fb7a6f0e6f8805435b0369584eef9.tar.bz2
kde-88758ab3034fb7a6f0e6f8805435b0369584eef9.zip
[git-2] Fully fix buidling with submodules.
Diffstat (limited to 'eclass/git-2.eclass')
-rw-r--r--eclass/git-2.eclass13
1 files changed, 3 insertions, 10 deletions
diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass
index e508bc4c9ce..c138d9d8c4a 100644
--- a/eclass/git-2.eclass
+++ b/eclass/git-2.eclass
@@ -156,19 +156,15 @@ git-2_submodules() {
return 1
fi
- [[ $# -ne 1 ]] && die "${FUNCNAME}: requires exactly 1 argument (path)"
-
debug-print "${FUNCNAME}: working in \"${1}\""
- pushd "${1}" > /dev/null
+ pushd "${EGIT_DIR}" > /dev/null
- export GIT_DIR=${1}
debug-print "${FUNCNAME}: git submodule init"
git submodule init || die
debug-print "${FUNCNAME}: git submodule sync"
- git submodule sync "" die
+ git submodule sync || die
debug-print "${FUNCNAME}: git submodule update"
git submodule update || die
- unset GIT_DIR
popd > /dev/null
fi
@@ -344,7 +340,6 @@ git-2_fetch() {
echo " repository: ${EGIT_REPO_URI_SELECTED}"
echo " at the commit: ${cursha}"
- git-2_submodules "${EGIT_DIR}"
popd > /dev/null
elif [[ -n ${EVCS_OFFLINE} ]]; then
pushd "${EGIT_DIR}" > /dev/null
@@ -370,8 +365,6 @@ git-2_fetch() {
echo " at the commit: ${cursha}"
fi
- git-2_submodules "${EGIT_DIR}"
-
# print nice statistic of what was changed
git --no-pager diff --stat ${oldsha}..${UPSTREAM_BRANCH}
popd > /dev/null
@@ -508,9 +501,9 @@ git-2_src_unpack() {
git-2_migrate_repository
git-2_fetch "$@"
git-2_gc
+ git-2_submodules
git-2_move_source
git-2_branch
- git-2_submodules "${EGIT_SOURCEDIR}"
git-2_bootstrap
echo ">>> Unpacked to ${EGIT_SOURCEDIR}"
}