Subject: Re: bug#38883: git submodule doesn't work in pure environment with ad-hoc git

From: Maxim Cournoyer <[email-masked]>
Date: Wed, 13 Jul 2022 09:51:20 -0400

Hi,

Danny Milosavljevic <[email-masked]> writes:

> /gnu/store/kyva0irr3khr01rs3v16nd5g4bzcgc95-git-2.24.1/libexec/git-core/.git-submodule-real:
> line 7: basename: command not found
> /gnu/store/kyva0irr3khr01rs3v16nd5g4bzcgc95-git-2.24.1/libexec/git-core/.git-submodule-real:
> line 7: sed: command not found
> /gnu/store/ah5pin2kr96c3fidjy39hzsy99riqi6s-profile/libexec/git-core/git-sh-setup:
> line 86: basename: command not found
> /gnu/store/ah5pin2kr96c3fidjy39hzsy99riqi6s-profile/libexec/git-core/git-sh-setup:
> line 86: sed: command not found
> /gnu/store/ah5pin2kr96c3fidjy39hzsy99riqi6s-profile/libexec/git-core/git-sh-setup:
> line 333: uname: command not found
> /gnu/store/kyva0irr3khr01rs3v16nd5g4bzcgc95-git-2.24.1/libexec/git-core/.git-submodule-real:
> line 1121: sed: command not found
> /gnu/store/kyva0irr3khr01rs3v16nd5g4bzcgc95-git-2.24.1/libexec/git-core/.git-submodule-real:
> line 1121: cmd_: command not found
>
> It might make sense to refer to basename, sed and uname by direct store path.

I just checked, and this is still reproducible:

--8<---------------cut here---------------start------------->8---
~/src/jami-project [env]$ git submodule update
/gnu/store/0fnkx82byvr4l5h6cqvvy6667c8hyba2-git-2.36.1/libexec/git-core/.git-submodule-real: line 7: basename: command not found
/gnu/store/0fnkx82byvr4l5h6cqvvy6667c8hyba2-git-2.36.1/libexec/git-core/.git-submodule-real: line 7: sed: command not found
/gnu/store/m7ng7k4b0x5nw78r8g73xv3h6cindiwm-profile/libexec/git-core/git-sh-setup: line 86: basename: command not found
/gnu/store/m7ng7k4b0x5nw78r8g73xv3h6cindiwm-profile/libexec/git-core/git-sh-setup: line 86: sed: command not found
/gnu/store/m7ng7k4b0x5nw78r8g73xv3h6cindiwm-profile/libexec/git-core/git-sh-setup: line 308: uname: command not found
/gnu/store/0fnkx82byvr4l5h6cqvvy6667c8hyba2-git-2.36.1/libexec/git-core/.git-submodule-real: line 637: sed: command not found
/gnu/store/0fnkx82byvr4l5h6cqvvy6667c8hyba2-git-2.36.1/libexec/git-core/.git-submodule-real: line 637: cmd_: command not found
--8<---------------cut here---------------end--------------->8---

Thanks,

Maxim