Fix build issues when having packed git refs. (#17162)
authorMichael Case <mikecase@google.com>
Thu, 8 Mar 2018 07:28:16 +0000 (23:28 -0800)
committerGunhan Gulsoy <gunan@google.com>
Thu, 8 Mar 2018 07:28:16 +0000 (23:28 -0800)
commit584aa04bfc816a6cf9f0390d33c3595837355935
tree426d956e04919391fcd1c10fffa7177214bc9238
parent9cd677c093315294eb1aa79472422616e04e63b9
Fix build issues when having packed git refs. (#17162)

This is a workaround to fix build failure caused by packed git refs.
The tf.__git_version__ string will be "unknown" in this case.
tensorflow/tools/git/gen_git_source.py