@@ -332,7 +332,7 @@ cmd_foreach()
332332 git submodule--helper list --prefix " $wt_prefix " ||
333333 echo " #unmatched" $?
334334 } |
335- while read mode sha1 stage sm_path
335+ while read -r mode sha1 stage sm_path
336336 do
337337 die_if_unmatched " $mode " " $sha1 "
338338 if test -e " $sm_path " /.git
@@ -441,7 +441,7 @@ cmd_deinit()
441441 git submodule--helper list --prefix " $wt_prefix " " $@ " ||
442442 echo " #unmatched" $?
443443 } |
444- while read mode sha1 stage sm_path
444+ while read -r mode sha1 stage sm_path
445445 do
446446 die_if_unmatched " $mode " " $sha1 "
447447 name=$( git submodule--helper name " $sm_path " ) || exit
@@ -605,7 +605,7 @@ cmd_update()
605605 " $@ " || echo " #unmatched" $?
606606 } | {
607607 err=
608- while read mode sha1 stage just_cloned sm_path
608+ while read -r mode sha1 stage just_cloned sm_path
609609 do
610610 die_if_unmatched " $mode " " $sha1 "
611611
@@ -847,7 +847,7 @@ cmd_summary() {
847847 # Get modified modules cared by user
848848 modules=$( git $diff_cmd $cached --ignore-submodules=dirty --raw $head -- " $@ " |
849849 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
851851 do
852852 # Always show modules deleted or type-changed (blob<->module)
853853 if test " $status " = D || test " $status " = T
@@ -873,7 +873,7 @@ cmd_summary() {
873873 git $diff_cmd $cached --ignore-submodules=dirty --raw $head -- $modules |
874874 sane_egrep ' ^:([0-7]* )?160000' |
875875 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
877877 do
878878 if test -z " $cached " &&
879879 test $sha1_dst = 0000000000000000000000000000000000000000
@@ -1020,7 +1020,7 @@ cmd_status()
10201020 git submodule--helper list --prefix " $wt_prefix " " $@ " ||
10211021 echo " #unmatched" $?
10221022 } |
1023- while read mode sha1 stage sm_path
1023+ while read -r mode sha1 stage sm_path
10241024 do
10251025 die_if_unmatched " $mode " " $sha1 "
10261026 name=$( git submodule--helper name " $sm_path " ) || exit
@@ -1100,7 +1100,7 @@ cmd_sync()
11001100 git submodule--helper list --prefix " $wt_prefix " " $@ " ||
11011101 echo " #unmatched" $?
11021102 } |
1103- while read mode sha1 stage sm_path
1103+ while read -r mode sha1 stage sm_path
11041104 do
11051105 die_if_unmatched " $mode " " $sha1 "
11061106
0 commit comments