Closed ywei2017 closed 2 years ago
@clarafu any thought or comments on the PR.
Is there a way to check if those values are set in git_config first insteand of running the cmd to get an actual error?
Is there a way to check if those values are set in git_config first insteand of running the cmd to get an actual error?
Let me check on it
Read more on the git config docs. Unless we check the ~/.gitconfig
file, I can't think of a way. Actually, git config key_name
is basically doing that -- returning the configured value with exit 0 if exist, otherwise with exit 1.
The hard-coded git user name/email causes failures when the git server does pre-hook to verifying the push user and commit user must match.