From: Eric Sunshine Date: Thu, 02 Apr 2020 15:11:28 GMT Subject: Re: [PATCH] git-submodule.sh: setup uninitialized variables Message-ID: In-Reply-To: <20200402084251.85840-1-zhiyou.jx@alibaba-inc.com> On Thu, Apr 2, 2020 at 4:43 AM Jiang Xin wrote: > 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 pathspect '16' for Git command is from the environment variable > "jobs". s/pathspect/pathspec/ > 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 > Signed-off-by: Li Xuejiang