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

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

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Dec 22, 2010, 11:55 UTC
Message-ID
<AANLkTikoBaJmo97wh_zNaUAFHq3sf1j4b2HDuEmjRKnt@mail.gmail.com>
In-Reply-To
<AANLkTi=JrOe=z4LNZtxfsDvkG2jYCtemYESftv=61ZrJ@mail.gmail.com>
On Wed, Dec 22, 2010 at 6:50 PM, Alexey Zakhlestin <indeyets@gmail.com> wrote:
Show 7 quoted lines
> 1) returns correct path:
> /Users/indy/Documents/Sources/_mine/midgard/mvc/_rdf/midgardmvc_core/.git
> 2) false
> 3) returns correct path, again:
> /Users/indy/Documents/Sources/_mine/midgard/mvc/_rdf/midgardmvc_core
>
> just to make myself clear: $PWD is another path, not related to repository path

OK. git-pull does not automatically move to worktree (while git-status does) and thus won't work when $PWD is outside worktree. I remember there's a similar report this year. I'll see if I can make a patch for it.

Thank you for your report.
-- 
Duy
Previous: Alexey Zakhlestin
Message 7 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.