Re: Vendor import push failed: src refspec ... does not match any

From: Gregory Shapiro <gshapiro_at_freebsd.org>
Date: Mon, 09 Jan 2023 19:14:35 UTC
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.