centpkg fork creates a fork and registers the fork as a remote fetch & push source. However it does not git fetch the fork. This can lead to confusing error messages. Please consider to either use git remote add --fetch $username ... or run git fetch $username.
centpkg fork
git fetch
git remote add --fetch $username ...
git fetch $username
$ git checkout -b bz123458 tiran/c9s fatal: 'tiran/c9s' is not a commit and a branch 'bz123458' cannot be created from it $ git fetch tiran From git+ssh://gitlab.com/tiran/centos_rpms_python-ply * [new branch] c9s -> tiran/c9s $ git checkout -b bz123458 tiran/c9s Branch 'bz123458' set up to track remote branch 'c9s' from 'tiran'. Switched to a new branch 'bz123458'
I've sent a PR to fix it: https://git.centos.org/centos/centpkg/pull-request/34
IMHO fetching the newly added remote is unnecessary (most of the time) - nothing interesting is likely in it. Having a --fetch option might work for the remaining cases.
--fetch
The checkout command as presented in the guide is doing something it should not. Let's fix the guide instead?
checkout
Metadata Update from @tdawson: - Issue tagged with: Bug
Log in to comment on this ticket.