File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1323,7 +1323,10 @@ function upgrade() {
13231323 # been cloned first and then added as a submodule.
13241324 " $GIT_PROGRAM " submodule absorbgitdirs
13251325
1326+ local submodule_status
1327+ submodule_status=$( " $GIT_PROGRAM " -C " $YADM_WORK " submodule status)
13261328 while read -r sha submodule rest; do
1329+ [ " $submodule " == " " ] && continue
13271330 if [[ " $sha " = -* ]]; then
13281331 continue
13291332 fi
@@ -1334,7 +1337,7 @@ function upgrade() {
13341337 error_out " Unable to upgrade. Could not deinit submodule $submodule "
13351338 }
13361339 submodules+=(" $submodule " )
1337- done < <( " $GIT_PROGRAM " -C " $YADM_WORK " submodule status )
1340+ done <<< " $submodule_status "
13381341
13391342 assert_parent " $YADM_REPO "
13401343 mv " $LEGACY_REPO " " $YADM_REPO "
You can’t perform that action at this time.
0 commit comments