gn build: Use "git rev-parse --git-dir" to discover the path to the .git directory.
commitd93ccdc7f8a9558a99a51f5b5ebe2e9729cfc48c
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 10 Jan 2019 21:57:07 +0000 (10 21:57 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 10 Jan 2019 21:57:07 +0000 (10 21:57 +0000)
tree7cfb8b09dbf63b5c658e9b6763497b362e2ad7f3
parentd1faa99230ec78241af122781ccd6aa6d5caa59b
gn build: Use "git rev-parse --git-dir" to discover the path to the .git directory.

This makes it compatible with worktrees.

Differential Revision: https://reviews.llvm.org/D56422

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350897 91177308-0d34-0410-b5e6-96231b3b80d8
utils/gn/build/write_vcsrevision.py