Skip to content

Commit

Permalink
Ports: Properly update submodules when checking out Git repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
timschumi authored and gmta committed Sep 24, 2023
1 parent e12e833 commit 40808fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Ports/.port_include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ fetch_git() {

if [ ! -e "${working_copy}/.git" ]; then
run_nocd git -C "${backing_copy}" worktree add "${working_copy}" "${revision}"
run_nocd git -C "${working_copy}" submodule update --init --recursive
fi

old_revision=""
Expand All @@ -399,6 +400,7 @@ fetch_git() {
run_nocd git -C "${working_copy}" reset --hard
run_nocd git -C "${working_copy}" tag --no-sign -f source "${revision}"
run_nocd git -C "${working_copy}" checkout "${revision}"
run_nocd git -C "${working_copy}" submodule update --init --recursive
fi
}

Expand Down

0 comments on commit 40808fe

Please sign in to comment.