Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit e8eac8f

Browse files
authored
add safe dir for nvm (#1549)
1 parent 0e0daaa commit e8eac8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

containers/codespaces-linux/.devcontainer/base.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ RUN bash /tmp/scripts/python-debian.sh "none" "/opt/python/latest" "${PIPX_HOME}
8282
&& apt-get clean -y
8383

8484
# Setup Node.js, install NVM and NVS
85-
RUN bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \
85+
RUN git config --global --add safe.directory "${NVM_DIR}" \
86+
&& bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \
8687
&& (cd ${NVM_DIR} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVM_DIR}/.git-remote-and-commit \
8788
# Install nvs (alternate cross-platform Node.js version-management tool)
8889
&& git config --global --add safe.directory /home/codespace/.nvs \

0 commit comments

Comments
 (0)