Detecting GIT_DIR runtime
- From
- Mahesh Vaidya <forvaidya@gmail.com>
- Date
- May 5, 2010, 15:38 UTC
- Message-ID
- <t2gb42431c81005050838w425412d9jfe176c3b637e77c1@mail.gmail.com>
I have a tree like /home/mvaidya/WORKSPACE/nvos/mvaidya-master-100.local/some/folder
I would like to issue come command say "git fetch" from any level of the tree. How can I deduce path of .git folder. Reason I need it as I some application configuration saved in .git/workspace.properties and I need to some action before git fetch.
-- Thank you and best regards. Mahesh Vaidya / 9740500144 http://www.twitter.com/forvaidya