aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/config.mk1
-rw-r--r--build/f_repos/Makefile4
2 files changed, 3 insertions, 2 deletions
diff --git a/build/config.mk b/build/config.mk
index ab30518b5..b9be44f0a 100644
--- a/build/config.mk
+++ b/build/config.mk
@@ -22,6 +22,7 @@ FUEL_TRACK_REMOTES =
# git submodule & patch locations for Fuel components
F_GIT_ROOT := $(shell git rev-parse --show-toplevel)
+F_GIT_DIR := $(shell git rev-parse --git-dir)
F_SUBMOD_DIR := ${F_GIT_ROOT}/build/f_repos/sub
F_PATCH_DIR := ${F_GIT_ROOT}/build/f_repos/patch
F_OPNFV_TAG := ${FUEL_MAIN_TAG}-opnfv
diff --git a/build/f_repos/Makefile b/build/f_repos/Makefile
index 66abf2d71..2d2d0bf40 100644
--- a/build/f_repos/Makefile
+++ b/build/f_repos/Makefile
@@ -149,7 +149,7 @@ get-cache: .cacheid
@if $(CACHETOOL) check $(shell cat .cacheid); then \
$(MAKE) clean && \
$(CACHETOOL) get $(shell cat .cacheid) | \
- tar xf - -C ${F_GIT_ROOT}/.git; \
+ tar xf - -C ${F_GIT_DIR}; \
else \
echo "No cache item found for $(shell cat .cacheid)" ;\
exit 0;\
@@ -160,6 +160,6 @@ get-cache: .cacheid
put-cache: .cacheid
@if ! $(CACHETOOL) check $(shell cat .cacheid); then \
$(MAKE) clean && \
- tar cf - -C ${F_GIT_ROOT}/.git modules | \
+ tar cf - -C ${F_GIT_DIR} modules | \
$(CACHETOOL) put $(shell cat .cacheid); \
fi