@@ -332,7 +332,7 @@ cmd_foreach()
332
332
git submodule--helper list --prefix " $wt_prefix " ||
333
333
echo " #unmatched" $?
334
334
} |
335
- while read mode sha1 stage sm_path
335
+ while read -r mode sha1 stage sm_path
336
336
do
337
337
die_if_unmatched " $mode " " $sha1 "
338
338
if test -e " $sm_path " /.git
@@ -441,7 +441,7 @@ cmd_deinit()
441
441
git submodule--helper list --prefix " $wt_prefix " " $@ " ||
442
442
echo " #unmatched" $?
443
443
} |
444
- while read mode sha1 stage sm_path
444
+ while read -r mode sha1 stage sm_path
445
445
do
446
446
die_if_unmatched " $mode " " $sha1 "
447
447
name=$( git submodule--helper name " $sm_path " ) || exit
@@ -605,7 +605,7 @@ cmd_update()
605
605
" $@ " || echo " #unmatched" $?
606
606
} | {
607
607
err=
608
- while read mode sha1 stage just_cloned sm_path
608
+ while read -r mode sha1 stage just_cloned sm_path
609
609
do
610
610
die_if_unmatched " $mode " " $sha1 "
611
611
@@ -847,7 +847,7 @@ cmd_summary() {
847
847
# Get modified modules cared by user
848
848
modules=$( git $diff_cmd $cached --ignore-submodules=dirty --raw $head -- " $@ " |
849
849
sane_egrep ' ^:([0-7]* )?160000' |
850
- while read mod_src mod_dst sha1_src sha1_dst status sm_path
850
+ while read -r mod_src mod_dst sha1_src sha1_dst status sm_path
851
851
do
852
852
# Always show modules deleted or type-changed (blob<->module)
853
853
if test " $status " = D || test " $status " = T
@@ -873,7 +873,7 @@ cmd_summary() {
873
873
git $diff_cmd $cached --ignore-submodules=dirty --raw $head -- $modules |
874
874
sane_egrep ' ^:([0-7]* )?160000' |
875
875
cut -c2- |
876
- while read mod_src mod_dst sha1_src sha1_dst status name
876
+ while read -r mod_src mod_dst sha1_src sha1_dst status name
877
877
do
878
878
if test -z " $cached " &&
879
879
test $sha1_dst = 0000000000000000000000000000000000000000
@@ -1020,7 +1020,7 @@ cmd_status()
1020
1020
git submodule--helper list --prefix " $wt_prefix " " $@ " ||
1021
1021
echo " #unmatched" $?
1022
1022
} |
1023
- while read mode sha1 stage sm_path
1023
+ while read -r mode sha1 stage sm_path
1024
1024
do
1025
1025
die_if_unmatched " $mode " " $sha1 "
1026
1026
name=$( git submodule--helper name " $sm_path " ) || exit
@@ -1100,7 +1100,7 @@ cmd_sync()
1100
1100
git submodule--helper list --prefix " $wt_prefix " " $@ " ||
1101
1101
echo " #unmatched" $?
1102
1102
} |
1103
- while read mode sha1 stage sm_path
1103
+ while read -r mode sha1 stage sm_path
1104
1104
do
1105
1105
die_if_unmatched " $mode " " $sha1 "
1106
1106
0 commit comments