Date: Mon, 9 Jan 2023 11:14:35 -0800 From: Gregory Shapiro <gshapiro@freebsd.org> To: Warner Losh <imp@bsdimp.com> Cc: Philip Paeps <philip@freebsd.org>, freebsd-git@freebsd.org Subject: Re: Vendor import push failed: src refspec ... does not match any Message-ID: <20230109191435.jdod56db5ewpxajm@C02Y1186JHD2.corp.proofpoint.com> In-Reply-To: <CANCZdfoQbhtnYS3BxizTuEdGo7s1t235VA2iGybr5gH==6UdvQ@mail.gmail.com> References: <20230109023126.kjjynari5b6jpqxo@thornystick.local> <CC4F3EFB-5CFC-4565-951F-7C2C20224531@freebsd.org> <CANCZdfoQbhtnYS3BxizTuEdGo7s1t235VA2iGybr5gH==6UdvQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the responses. Some followup: > >> git worktree add ../vendor/sendmail freebsd/vendor/sendmail > > You needed to add '-b vendor/sendmail' here for it to create a branch > in your local name space (not in the freebsd/* upstream namespace). Does the documentation at: https://docs.freebsd.org/en/articles/committers-guide/#vendor-import-git Need to be updated? Specifically, section 5.4 never talks about including a '-b' flag in the git worktree command. '-b' is mentioned for creating a new vendor branch but sendmail as a vendor is not new and the branch is already listed as existing: https://cgit.freebsd.org/src/log/?h=vendor/sendmail > Yes. You've not created a vendor/sendmail branch yet, so there's no > 'ref' to push. This message really is git saying 'I'm not sure I know > what vendor/sendmail is', since it uses that to know what to push > upstream. This is where having the upstream set correctly just might > matter. I'll note this is not the first vendor import of sendmail source so I want to make sure not to break anything by creating a new branch for a pre-existing vendor package. > Yea, git makes it stupidly easy to throw away work that's somehow done > incorrectly the first time... Happy to restart once I am sure I won't break the existing vendor import of sendmail.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230109191435.jdod56db5ewpxajm>