@matheusbsbs / matheus-bagliano / commits / 48bb30331d
Fork 0

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 <pape@smarden.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Gerrit Pape committed Apr 26, 2010 at 11:50 UTC 48bb30331dc1139a7279d1665cfc76f14b5d0e67
1 file changed +2
git-submodule.sh
+2
@@ -21,6 +21,8 @@ command=
21 branch=
22 reference=
23 cached=
24 +recursive=
25 +init=
26 files=
27 nofetch=
28 update=