Re: "git pull" doesn't respect --work-tree parameter
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Dec 22, 2010, 11:20 UTC
- Message-ID
- <AANLkTik9s0cLc_P=NWvpO=DhytOkLNASEM7sjzoscHo3@mail.gmail.com>
- In-Reply-To
- <AANLkTi=UtZuPQcTNnwS_fXgzRn4MHAUGS8zyTMqX9E2J@mail.gmail.com>
On Tue, Dec 21, 2010 at 11:04 PM, Alexey Zakhlestin <indeyets@gmail.com> wrote:
Show 6 quoted lines
> 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"
It works fine for me. What's the result of
git '--git-dir=/path/to/repository/.git' '--work-tree=/path/to/repository' --git-dir git '--git-dir=/path/to/repository/.git' '--work-tree=/path/to/repository' --is-inside-work-tree git '--git-dir=/path/to/repository/.git' '--work-tree=/path/to/repository' --show-toplevel
?
Also what version of git are you using?
-- Duy