Skip to content

Commit dfb5c4f

Browse files
committed
Work around git Bash (?) issue with subshell output used as input
1 parent e808676 commit dfb5c4f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

commands/list

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ tree() {
2424
local PARENT="$5"
2525

2626
local KEYS=()
27-
while IFS= read -r KEY; do
27+
IFS=$'\n'
28+
for KEY in $(git config \
29+
--file "$GITMODULES" \
30+
--name-only \
31+
--get-regexp "^submodule\.($KIND)/.*\.path$"); do
2832
KEYS+=("$KEY")
29-
done < <(git config \
30-
--file "$GITMODULES" \
31-
--name-only \
32-
--get-regexp "^submodule\.($KIND)/.*\.path$")
33+
done
3334

3435
if [ 0 = ${#KEYS[@]} ]; then
3536
CONNECT=''

0 commit comments

Comments
 (0)