git clone gives "git: 'remote-https' is not a git command. See 'git --help'."

2,630 views
Skip to first unread message

Dafna Hirschfeld

unread,
Jul 14, 2021, 10:14:52 AM7/14/21
to Chromium OS Development
Hi,
on developer mode when running `git clone https://bla.com.git`

I get the error:
```
git: 'remote-https' is not a git command. See 'git --help'
```
I was not able to see how to fix it



Brian Norris

unread,
Jul 14, 2021, 11:34:33 AM7/14/21
to Dafna Hirschfeld, Chromium OS Development
I think somebody else noticed this elsewhere, and the problem is that the https helper is installed in /usr/local at /usr/local/libexec/git-core/git-remote-https, but git is only looking for it at places in the root filesystem (like /usr/libexec). Somebody needs to fix the git package -- or maybe it's already fixed and we need to upgrade.

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-dev

Mike Frysinger

unread,
Jul 14, 2021, 12:09:50 PM7/14/21
to Brian Norris, Dafna Hirschfeld, Chromium OS Development
can prob be worked around with:
  ln -s /usr/local/libexec/git-core /usr/libexec/

git will dynamically find some paths (like $PATH search), but others it seems to hardcode at build time which is unfortunate.
we could install a symlink in the rootfs to make this work if we wanted.
-mike
Reply all
Reply to author
Forward
0 new messages