fix(py): set `cwd` when get commit sha in setup.py (#14299)
`cwd` was not set before when get commit SHA. The default `cwd` is the current build directory. However, the build directory might not be the subdirectory of source. The `git` command will fail when that happened. test=develop
Showing
想要评论请 注册 或 登录