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

Re: bug with .git file and aliases

From
Geoffrey Irving <irving@naml.us>
Date
Jul 20, 2009, 15:25 UTC
Message-ID
<7f9d599f0907200825j69ee3c9cj4aef26796c3917d6@mail.gmail.com>
In-Reply-To
<adf1fd3d0907200818l429e701ds6a42ec49f02d5ba9@mail.gmail.com>
On Mon, Jul 20, 2009 at 11:18 AM, Santi Béjar<santi@agolina.net> wrote:
Show 14 quoted lines
> 2009/7/20 Geoffrey Irving <irving@naml.us>:
>> On Mon, Jul 20, 2009 at 10:04 AM, Santi Béjar<santi@agolina.net> wrote:
>>> I suspect that the $GIR_DIR and .git file works equally in this
>>> aspect, so you should specify where is the workdir in .git/config with
>>> respect the repository:
>>>
>>> git config core.workdir `pwd`
>>
>> Nope, that has no effect.
>
> Here it has the desired effect. From where did you run the above
> command? What is the output of:
>
> git config core.workdir

top:a% git config core.workdir /Users/irving/tmp/tmp/repo top:a% git st # On branch master # Changed but not updated: # (use "git add/rm <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # deleted: a/b # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # b

It doesn't matter, though, since setting workdir should not be necessary.
Geoffrey
Previous: Santi BéjarNext: Jeff King
Message 5 of 13 in “bug with .git file and aliases”
  1. Geoffrey IrvingJul 20, 2009
  2. Santi BéjarJul 20, 2009
  3. Geoffrey IrvingJul 20, 2009
  4. Santi BéjarJul 20, 2009
  5. Geoffrey IrvingJul 20, 2009
  6. Jeff KingJul 20, 2009
  7. Geoffrey IrvingAug 10, 2009
  8. Johannes SchindelinAug 10, 2009
  9. Geoffrey IrvingAug 11, 2009
  10. Johannes SchindelinAug 11, 2009
  11. Michael J GruberAug 11, 2009
  12. Johannes SixtAug 11, 2009
  13. Michael J GruberAug 11, 2009

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.