[PATCH dim-tools] dim: Avoid hardcoding remote name for linux-upstream
Lukas Wunner
lukas at wunner.de
Wed Jul 9 06:21:05 UTC 2025
On Tue, Jul 08, 2025 at 05:19:52PM -0400, Rodrigo Vivi wrote:
> On Sat, Jul 05, 2025 at 10:51:36AM +0200, Lukas Wunner wrote:
> > dim hardcodes "origin" as remote name for linux-upstream in a number of
> > places. This (only) works if "origin" is indeed Torvalds' repo.
> >
> > Resolve the remote name for linux-upstream at runtime to make dim work
> > with local repos that lack an "origin" remote or use it for something
> > else.
>
> I'm afraid this doesn't 'resolve the name' but instead force everyone
> else to use linux-upstream as the name for Linus branch.
No, "linux-upstream" is the symbolic git repo name used in nightly.conf
(in the drm-rerere repo).
> rdvivi at rdvivi-mobl1:~/linux/maintainer-tools$ dim blah
> dim: Adding remote for linux-upstream repo from URLs:
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git
Hm, are you not using one of those URLs for your "origin" remote?
What does "git remote -v | grep origin" return?
> > Somebody please consider applying this. It looks like I cannot push to
> > the maintainer-tools repo despite being allowed to push to drm-misc.
> > Or I'm doing something wrong. Thanks!
>
> Please take a look at:
> https://gitlab.freedesktop.org/drm/maintainer-tools
>
> We are now sending merge requests there instead of patches in this mailing list.
Thanks! I didn't get that memo.
Lukas
More information about the dim-tools
mailing list