#32 centpkg fork should also git fetch the fork
Opened 3 years ago by cheimes. Modified 2 years ago

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.


$ 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'

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.

The checkout command as presented in the guide is doing something it should not. Let's fix the guide instead?

Metadata Update from @tdawson:
- Issue tagged with: Bug

2 years ago

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #34 Last updated 3 years ago