Re: [commit] master: build: also consider builds off of git with `git clone --depth 1`
mailbox synchronizer
Brought to you by:
ossi
|
From: Paymon <dar...@gm...> - 2024-12-04 16:47:45
|
On Wed, Dec 04, 2024 at 05:28:33PM +0100, Oswald Buddenhagen via isync-devel wrote:
> but maybe this could be still handled better? i guess not, as the branch
> name above is meaningless, and presumably no other refs are present? does
> gitk --all show anything sensible in this repo?
it's a remote machine with wayland only.
what would `gitk --all show` tell us? (never used it before)
people at #git tell me to use `git log --all`... and there is something:
```sh
portage@frostbite /var/tmp/portage/net-mail/isync-9999/work/isync-9999 $ git --no-pager log --all
commit 884413b48871361cf6c0cfa41d01c22ed1ec8d30 (grafted, HEAD)
Author: Paymon MARANDI <dar...@gm...>
Date: Tue Dec 3 15:25:09 2024 -0500
build: also consider builds off of git with `git clone --depth 1`
one case where this could happen is a shallow clone, purely for build
purposes. in source based distros, like gentoo, setting depth of the
clone to 1, globally, is a common configuration. this patch avoids that
those builds fail.
Signed-off-by: Paymon MARANDI <dar...@gm...>
```
```sh
portage@frostbite /var/tmp/portage/net-mail/isync-9999/work/isync-9999 $ cat .git/refs/git-r3/HEAD
884413b48871361cf6c0cfa41d01c22ed1ec8d30
```
git-r3 is poratge's doing. (portage is the package manager in gentoo).
--
Paymon
|