"git pull" doesn't respect --work-tree parameter
- From
Alexey Zakhlestin <indeyets@gmail.com>
- Date
- Dec 21, 2010, 16:04 UTC
- Message-ID
- <AANLkTi=UtZuPQcTNnwS_fXgzRn4MHAUGS8zyTMqX9E2J@mail.gmail.com>
I am trying to use the following command:
git '--git-dir=/path/to/repository/.git' '--work-tree=/path/to/repository' pull
and get this error: "git-pull cannot be used without a working tree"
I get the same error, if I try to use corresponding environment variables
looks like a bug, because I can, successfully, use "git status" with the same --git-dir and --work-tree parameters
-- Alexey Zakhlestin, http://twitter.com/jimi_dini http://www.milkfarmsoft.com/