Determine git_dir and git_work_tree in python.
authorGovind Salinas <blix@sophiasuchtig.com>
Sat, 7 Jun 2008 03:49:15 +0000 (22:49 -0500)
committerDavid Aguilar <davvid@gmail.com>
Thu, 12 Jun 2008 08:26:07 +0000 (01:26 -0700)
commitc5083752d5d02d6c46bc2f18ba53a28d119af5b9
tree6d55b650713f27e2b1e83ccb2b557cc5e0cca017
parent8a0eee3989abd3a5d6d47d0298bd056a954d379b
Determine git_dir and git_work_tree in python.

Calling git to find the git_dir and work_tree is very costly.
This patch uses the same mechanisim to find the git_dir as native
git does without shelling out.

Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>
lib/git/cmd.py
lib/git/repo.py