Prior to git 1.8.4 the current working dir has to
be at top-level to run git submodule update.
Change-Id: I4d6c052364863f965e8140e56af17c09ee39ed59
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
.cachefuelinfo:
@if [ -n "${FUEL_TRACK_REMOTES}" ]; then \
- git submodule update --init --remote 2>/dev/null; \
+ cd ${F_GIT_ROOT} && git submodule update --init --remote 2>/dev/null; \
else \
git submodule update --init 2>/dev/null; \
fi
.cachepatched: ${FPATCHES}
@$(MAKE) clean
- @git submodule -q foreach ' \
+ @cd ${F_GIT_ROOT} && git submodule -q foreach ' \
SUB_DIR=${F_PATCH_DIR}/$$name; mkdir -p $$SUB_DIR && \
git tag ${F_OPNFV_TAG}-root && \
git checkout -q -b opnfv-fuel && \