Skip to content

Commit

Permalink
Revert "Fix parsing by sh"
Browse files Browse the repository at this point in the history
To test if the build fails.

This reverts commit b32025b.
  • Loading branch information
erijo committed Jan 27, 2025
1 parent 7e19d21 commit 58e04f6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions yadm
Original file line number Diff line number Diff line change
Expand Up @@ -1376,10 +1376,7 @@ function upgrade() {
# been cloned first and then added as a submodule.
"$GIT_PROGRAM" submodule absorbgitdirs

local submodule_status
submodule_status=$("$GIT_PROGRAM" -C "$YADM_WORK" submodule status)
while read -r sha submodule rest; do
[ "$submodule" == "" ] && continue
if [[ "$sha" = -* ]]; then
continue
fi
Expand All @@ -1390,7 +1387,7 @@ function upgrade() {
error_out "Unable to upgrade. Could not deinit submodule $submodule"
}
submodules+=("$submodule")
done <<<"$submodule_status"
done < <("$GIT_PROGRAM" -C "$YADM_WORK" submodule status)

assert_parent "$YADM_REPO"
mv "$LEGACY_REPO" "$YADM_REPO"
Expand Down

0 comments on commit 58e04f6

Please sign in to comment.