Locate toplevel for git submodule [2] 73/40973/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Mon, 4 Sep 2017 05:59:03 +0000 (09:59 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Mon, 4 Sep 2017 05:59:03 +0000 (09:59 +0400)
Change-Id: I0c719ec4cfd3d0a526fd6913358cc80c5a599985
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/patches/Makefile

index ae89498..061c647 100644 (file)
@@ -50,7 +50,7 @@ sub: .cachefuelinfo
        @if [ -n "${FUEL_TRACK_REMOTES}" ]; then \
                cd ${F_GIT_ROOT} && git submodule update --init --remote 2>/dev/null; \
        else \
-               git submodule update --init 2>/dev/null; \
+               cd ${F_GIT_ROOT} && git submodule update --init 2>/dev/null; \
        fi
        @touch $@