Date: Fri, 9 Apr 2021 10:48:40 +0800 From: Simon Wright <simon.wright@gmx.net> To: freebsd-ports@freebsd.org Subject: Re: Specific svn/git package update use case Message-ID: <9df60096-5651-20fa-0f7b-6d9c930480a0@gmx.net> In-Reply-To: <20210409.100242.547494758342336793.ish@amail.plala.or.jp> References: <027d14d6-aa3b-441e-a60d-de3f4bf5a139@gmx.net> <4759fe63-3f52-79e1-9746-14c3556dce24@gmx.net> <20210409.100242.547494758342336793.ish@amail.plala.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Thank you. I had to delete and recreate the repro as non-shallow to get the commit history but once done then I could find the commit and update to it. Follow-up: I'm still not clear though whether checking out this commit brings in all the commits from git clone to this one or only this commit. My reading seems to say that this is *only* this one commit which is not my need. Can anyone confirm this please? Second follow-up: After the checkout I receive this message: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c <new-branch-name> Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to fal= se HEAD is now at c3c627b0656 devel/jenkins-lts: Update to 2.277.2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I don't want to create a new branch but "fix" or merge the checkout into my local branch? Or can I just leave it as is? Thanks, Simon. On 09/04/2021 9:02 am, Masachika ISHIZUKA wrote: >> [/share/freebsd_ports] # git pull c3c627b06563 >> fatal: 'c3c627b06563' does not appear to be a git repository >> fatal: Could not read from remote repository. > > First, check the commit. > % git log| grep c3c627b06563 > commit c3c627b06563cd0c7bcc4f491cd9c6f50716033b > > Then checkout it. > % git checkout c3c627b06563cd0c7bcc4f491cd9c6f50716033b >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9df60096-5651-20fa-0f7b-6d9c930480a0>