If you browse to https://github.com/apache/logging-log4j2 and clone the
repository as described there:

    git clone g...@github.com:apache/logging-log4j2.git

This not only works, but also lands you on the right branch: `2.x`.

On Fri, Mar 10, 2023 at 12:47 PM Gary Gregory <garydgreg...@gmail.com>
wrote:

> So the branch renaming broke cloning and checking out code with the most
> basic git command? At least that's what the side effect seems to me. What's
> the fix? Or will no one ever be able to say 'git clone' as below and have
> it just work?
>
> Gary
>
> On Fri, Mar 10, 2023, 05:18 Volkan Yazıcı <vol...@yazi.ci> wrote:
>
> > We mention the `gitbox` keyword neither in the sources, nor in the docs.
> >
> > There is a GitHub link at the top right corner of every page in the
> > website.
> >
> > `pom.xml`s SCM block points to GitHub.
> >
> > `CONTRIBUTING.md` only hints to GitHub resources – though I agree there
> is
> > no direct link to the repository there.
> >
> > I think everybody _assumes_ GitHub is the default repository. Maybe we
> > should clearly document this.
> >
> > Regarding the `nonexistent ref` error you get, we have renamed quite some
> > branches[1]. In particular, `master` → `main` and `release-2.x` → `2.x`.
> >
> > I hope this clarifies things for you.
> >
> > [1] https://lists.apache.org/thread/41wds37l4xmfzljgsgvplny811wd1v37
> >
> > On Thu, Mar 9, 2023 at 11:51 PM Gary D. Gregory <ggreg...@apache.org>
> > wrote:
> >
> > > Hi All:
> > >
> > > My expectation is that:
> > >
> > > C:\Users\ggregory\git\a>git clone
> > > https://gitbox.apache.org/repos/asf/logging-log4j2.git logging-log4j3
> > >
> > > Would clone and checkout master (or main or whatever the default branch
> > is
> > > called now) but instead, I get an empty folder and this output:
> > >
> > > Cloning into 'logging-log4j3'...
> > > remote: Enumerating objects: 262413, done.
> > > remote: Counting objects: 100% (262413/262413), done.
> > > remote: Compressing objects: 100% (68647/68647), done.
> > > remote: Total 262413 (delta 127358), reused 256238 (delta 122788)
> > > Receiving objects: 100% (262413/262413), 38.27 MiB | 11.31 MiB/s, done.
> > > Resolving deltas: 100% (127358/127358), done.
> > > warning: remote HEAD refers to nonexistent ref, unable to checkout
> > >
> > > This says nothing to help:
> > > https://github.com/apache/logging-log4j2/blob/2.x/BUILDING.md
> > > and nothing jumps out at me on the main page
> > > https://logging.apache.org/log4j/2.x/index.html
> > >
> > > So... what's the magic missing?
> > >
> > > TY!
> > > Gary
> > >
> > >
> >
>

Reply via email to