{"thread":{"id":"56132","subject":"[bug][git-gui] Git gui is not executing prepare-commit-msg hooks when run from a worktree","startedAt":"2021-07-20T14:41:33Z","lastAt":"2021-07-20T17:59:04Z","messageCount":2,"participants":["Bertrand Provost","Pratyush Yadav"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"430630","messageId":"CAPKfN0NJ65Qmx+tCPi2L_QhPfFcrhAHMSb2JSYSe26mtkcwf+Q@mail.gmail.com","threadId":"56132","inReplyTo":null,"subject":"[bug][git-gui] Git gui is not executing prepare-commit-msg hooks when run from a worktree","fromName":"Bertrand Provost","fromEmail":"provost.bertrand@gmail.com","sentAt":"2021-07-20T14:32:00Z","receivedAt":"2021-07-20T14:41:33Z","isPatch":false,"sender":{"key":"provost.bertrand@gmail.com","avatar":null},"body":"Hello,\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n- Create a worktree of a git in a new directory\n- Add prepare-commit-msg hook\n- Open `git gui` UI from the worktree directory\n\nWhat did you expect to happen? (Expected behavior)\nIt should fill the commit field with the hooks\n\nWhat happened instead? (Actual behavior)\nNothing\n\nThe hook works fine in the original directory (with the full .git)\n\n[System Info]\ngit version:\ngit version 2.31.1\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Linux 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64\ncompiler info: gnuc: 9.3\nlibc info: glibc: 2.31\n$SHELL (typically, interactive shell): /bin/bash\n\n[Enabled Hooks]\nprepare-commit-msg\n\n-- \nBertrand Provost\n"},{"id":"430673","messageId":"20210720175637.nrlnkmbzbglvmebe@yadavpratyush.com","threadId":"56132","inReplyTo":"CAPKfN0NJ65Qmx+tCPi2L_QhPfFcrhAHMSb2JSYSe26mtkcwf+Q@mail.gmail.com","subject":"Re: [bug][git-gui] Git gui is not executing prepare-commit-msg hooks when run from a worktree","fromName":"Pratyush Yadav","fromEmail":"me@yadavpratyush.com","sentAt":"2021-07-20T17:56:37Z","receivedAt":"2021-07-20T17:59:04Z","isPatch":false,"sender":{"key":"me@yadavpratyush.com","avatar":"https://avatars.githubusercontent.com/u/8817931?v=4"},"body":"On 20/07/21 10:32AM, Bertrand Provost wrote:\n> Hello,\n> \n> What did you do before the bug happened? (Steps to reproduce your issue)\n> - Create a worktree of a git in a new directory\n> - Add prepare-commit-msg hook\n> - Open `git gui` UI from the worktree directory\n> \n> What did you expect to happen? (Expected behavior)\n> It should fill the commit field with the hooks\n> \n> What happened instead? (Actual behavior)\n> Nothing\n> \n> The hook works fine in the original directory (with the full .git)\n> \n> [System Info]\n> git version:\n> git version 2.31.1\n> cpu: x86_64\n> no commit associated with this build\n> sizeof-long: 8\n> sizeof-size_t: 8\n> shell-path: /bin/sh\n> uname: Linux 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64\n> compiler info: gnuc: 9.3\n> libc info: glibc: 2.31\n> $SHELL (typically, interactive shell): /bin/bash\n> \n> [Enabled Hooks]\n> prepare-commit-msg\n\nThanks for reporting. I will take a look when I can find the time.\n\n> \n> -- \n> Bertrand Provost\n\n-- \nRegards,\nPratyush Yadav\n"}]}