We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e808676 commit dfb5c4fCopy full SHA for dfb5c4f
1 file changed
commands/list
@@ -24,12 +24,13 @@ tree() {
24
local PARENT="$5"
25
26
local KEYS=()
27
- while IFS= read -r KEY; do
+ IFS=$'\n'
28
+ for KEY in $(git config \
29
+ --file "$GITMODULES" \
30
+ --name-only \
31
+ --get-regexp "^submodule\.($KIND)/.*\.path$"); do
32
KEYS+=("$KEY")
- done < <(git config \
- --file "$GITMODULES" \
- --name-only \
- --get-regexp "^submodule\.($KIND)/.*\.path$")
33
+ done
34
35
if [ 0 = ${#KEYS[@]} ]; then
36
CONNECT='─'
0 commit comments