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

[BUG] git-gui regression in 2.0rcX within submodule

From
YDYann Dirson <ydirson@free.fr>
Date
May 12, 2014, 23:45 UTC
Message-ID
<20140512234518.GB5529@home.lan>

In 2.0rc2, git-gui is unable to work inside submodules, where 1.9.2 did not show such a problem:

yann@home:~$ cd /tmp/ yann@home:tmp$ mkdir foo yann@home:tmp$ cd foo/ yann@home:foo$ git init Initialized empty Git repository in /tmp/foo/.git/ yann@home:foo (master)$ git submodule add git://git.debian.org/git/collab-maint/tulip.git debian Cloning into 'debian'... remote: Counting objects: 317, done. remote: Compressing objects: 100% (199/199), done. remote: Total 317 (delta 184), reused 166 (delta 95) Receiving objects: 100% (317/317), 73.81 KiB | 0 bytes/s, done. Resolving deltas: 100% (184/184), done. Checking connectivity... done. yann@home:foo (master)$ git status On branch master

Initial commit
Changes to be committed:
  (use "git rm --cached <file>..." to unstage)
        new file:   .gitmodules
        new file:   debian

yann@home:foo (master)$ (cd debian/ && git gui) [errors out after showing the following error dialog]

| No working directory ../../../debian:
| 
| couldn't change working directory
| to "../../../debian": no such file or
| directory

strace shows the failing chdir call is from git-gui itself, after getcwd() told him that it is in the dir that is indeed the workdir already.

Next: Chris Packham
Message 1 of 3 in “[BUG] git-gui regression in 2.0rcX within submodule”
  1. Yann DirsonMay 12, 2014
  2. Chris PackhamMay 13, 2014
  3. Jens LehmannMay 13, 2014

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.