@matheusbsbs / matheus-bagliano / commits / 65d100c4dd
Fork 0

git-submodule.sh: setup uninitialized variables

We have an environment variable `jobs=16` defined in our CI system, and this environment makes our build job failed with the following message: error: pathspec '16' did not match any file(s) known to git The pathspec '16' for Git command is from the environment variable "jobs". This is because "git-submodule" command is implemented in shell script, and environment variables may change its behavior. Set values for uninitialized variables, such as "jobs" and "recommend_shallow" will fix this issue. Helped-by: Jiang Xin <worldhello.net@gmail.com> Signed-off-by: Li Xuejiang <xuejiang@alibaba-inc.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Li Xuejiang committed Apr 2, 2020 at 16:42 UTC 65d100c4ddbe83953870be2e08566086e4b1cd3c
1 file changed +2
git-submodule.sh
+2
@@ -47,6 +47,8 @@ custom_name=
47 depth=
48 progress=
49 dissociate=
50 +jobs=
51 +recommend_shallow=
52
53 die_if_unmatched ()
54 {