Fix the missing parameter in get_sha function (#51290)
Summary:
get_sha() function didn't pass in the pytorch_root argument, so subprocess.check_output always raise exception since pytorch_root is not defined, thus always return 'Unknown'.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51290
Reviewed By: soumith
Differential Revision: D26219051
Pulled By: malfet
fbshipit-source-id: fee2c4f5fdfc61983559eec1600b9accb344c527