Skip to content

Commit 48bb303

Browse files
g-papegitster
authored andcommitted
git-submodule.sh: properly initialize shell variables
git-submodule inherits variables from the environment it is started in, expects the internal variables init= and recursive= to have an empty value, but doesn't initialize them appropriately. Thanks to the selftests, this can be reproduced through init=1 make test recursive=1 make test With this commit the variables are initialized, and the selftests succeed even if these variables have some values in the environment. The bug was discovered through the Debian autobuilders http://bugs.debian.org/569594 Signed-off-by: Gerrit Pape <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e92e9cd commit 48bb303

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-submodule.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ command=
2121
branch=
2222
reference=
2323
cached=
24+
recursive=
25+
init=
2426
files=
2527
nofetch=
2628
update=

0 commit comments

Comments
 (0)