On src.fp.o, could we inject a custom message when someone trys to
fetch/clone a master branch via pagure-dist-git ?
Something like "this branch is deprecated, more info on https://foo.bar"
20/12/11 08:15(e)an, Pierre-Yves Chibon igorleak idatzi zuen:
On Thu, Dec 10, 2020 at 10:29:12AM -0800, Kevin Fenzi wrote:
On Thu, Dec 10, 2020 at 10:36:36AM +0100, Robert-André Mauchin wrote:
On 12/3/20 4:02 PM, Ben Cotton wrote:
https://fedoraproject.org/wiki/Changes/GitRepos-master-to-main
== Summary ==
This Change will move Fedora git repositories to use "main" as the
default git branch instead of "master". Specific repositories will be
manually moved and default git branch for new projects will be set to
use "main".
The Fedora Community strives to be open and welcoming. Some language
around our git repositories is dated and could be more inclusive. Many
git repositories currently use "master" as the default branch. This
Change will move many repositories (see below) to use a "main" branch
as default. This small bit of naming adjustment is in-line with
Fedora's vision for free and open source software built by inclusive,
welcoming, and open-minded communities.
How does it work for the enduser? I have thousand of git repos locally with
the master branch, will it rename automatically master to main when I git
pull or do I need to run a special command?
You will need to reclone or run some commands in those existing
checkouts.
If you have a clone that has 'master' branch and we delete that, and you
'git pull' you will get:
Fetching origin
Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.
So you will need to do:
git checkout main
git branch --set-upstream-to=origin/main main
Since the main branch will exist on the remote, you may be able to do:
git fetch
git checkout main
and I think the git branch --set-upstream-to is no longer needed then
then git pull.
I don't think there's anything we can do on the server side to make that
easier. Pingou any ideas?
Not at the moment >
Pierre
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx