summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e92e9cd)
raw | patch | inline | side by side (parent: e92e9cd)
author | Gerrit Pape <pape@smarden.org> | |
Mon, 26 Apr 2010 09:50:39 +0000 (11:50 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 1 May 2010 18:11:52 +0000 (11:11 -0700) |
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>
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>
git-submodule.sh | patch | blob | history |
diff --git a/git-submodule.sh b/git-submodule.sh
index e2082fd1492fe34e69c59f0a46cbaf7ddd2e2a8e..d3c583d0113e133b8fc75b533ff3f88d2a9c7efe 100755 (executable)
--- a/git-submodule.sh
+++ b/git-submodule.sh
branch=
reference=
cached=
+recursive=
+init=
files=
nofetch=
update=