git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "git pull" doesn't respect --work-tree parameter

From
Alexey Zakhlestin <indeyets@gmail.com>
Date
Dec 22, 2010, 11:40 UTC
Message-ID
<AANLkTinGPJRQCOVz5JeqL4xnUG9V=5fkJhz6C5Mi1A3o@mail.gmail.com>
In-Reply-To
<AANLkTik9s0cLc_P=NWvpO=DhytOkLNASEM7sjzoscHo3@mail.gmail.com>
On Wed, Dec 22, 2010 at 2:20 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
Show 12 quoted lines
> On Tue, Dec 21, 2010 at 11:04 PM, Alexey Zakhlestin <indeyets@gmail.com> wrote:
>> 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
No directory given for --git-dir.
> git '--git-dir=/path/to/repository/.git'
> '--work-tree=/path/to/repository' --is-inside-work-tree
Unknown option: --is-inside-work-tree
> git '--git-dir=/path/to/repository/.git'
> '--work-tree=/path/to/repository' --show-toplevel
Unknown option: --show-toplevel
> Also what version of git are you using?
1.7.3.4
-- 
Alexey Zakhlestin, http://twitter.com/jimi_dini
http://www.milkfarmsoft.com/
Previous: Nguyen Thai Ngoc DuyNext: Andreas Ericsson
Message 3 of 7 in “"git pull" doesn't respect --work-tree parameter”
  1. Alexey ZakhlestinDec 21, 2010
  2. Nguyen Thai Ngoc DuyDec 22, 2010
  3. Alexey ZakhlestinDec 22, 2010
  4. Andreas EricssonDec 22, 2010
  5. Nguyen Thai Ngoc DuyDec 22, 2010
  6. Alexey ZakhlestinDec 22, 2010
  7. Nguyen Thai Ngoc DuyDec 22, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.