GIT_AVAILABLE variable at the top of the parlai/core/params.py denote if git import is available or not. (#2961)
GIT_AVAILABLE variable at the top of the parlai/core/params.py denote if git import is available or not. (#2961)

But unfortunately it was never used, so created the problem while printing git commit message by print_git_commit function.

Not using this variable will create "git is not defined" error on function call of print_git_commit on system which don't have git import.
Here i provided my simple implementation.
facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI