From e354b8b7104a9001cfa26b7e417c97e221aa801f Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Sun, 25 Apr 2010 23:02:49 +0000 Subject: [PATCH 3/3] 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 makes 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 --- git-submodule.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/git-submodule.sh b/git-submodule.sh index 2dd372a..3319b83 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -21,6 +21,8 @@ command= branch= reference= cached= +recursive= +init= files= nofetch= update= -- 1.7.0.3