ports git pull message

Everything related to Installing and maintaining software.
Post Reply
nevets
Posts: 42
Joined: Tue Jun 23, 2020 3:54 am

ports git pull message

Post by nevets »

Hi.
I get this message when updating ports tree...
From https://github.com/ghostbsd/ghostbsd-ports
= [up to date] main -> origin/main
Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.
What does this mean please....
Steve
User avatar
ericbsd
Developer
Posts: 1787
Joined: Mon Nov 19, 2012 7:54 pm

Re: ports git pull message

Post by ericbsd »

I rename the master branch to main like FreeBSD ports repository.

You should install ports with pkg, and the something is you need src.

Code: Select all

sudo pkg install ports
sudo pkg install src
nevets
Posts: 42
Joined: Tue Jun 23, 2020 3:54 am

Re: ports git pull message

Post by nevets »

Thanks Eric,
I installed both 'ports' and 'src' packages - but got the same error message when I tried to update the ports with 'git pull'...
POST git-upload-pack (144 bytes)
From https://github.com/ghostbsd/ghostbsd-ports
= [up to date] main -> origin/main
Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.
Is there a command [when in the ports directory /usr/ports/ghostbsd-ports] to run that updates the new branch name?
Or perhaps a configuration file to amend in the root of the ports tree?
There's a file called 'update-branch-os.sh' that references the old trueos master...?
Thanks
User avatar
ericbsd
Developer
Posts: 1787
Joined: Mon Nov 19, 2012 7:54 pm

Re: ports git pull message

Post by ericbsd »

why not just use ports from packages, it will be updated when a new ports tree package comes.

The git repo is for developers and the ports package is compatible with the installed packages, not the git repos.

The ports package installs ports tree in /usr/ports.

Also to fix your issue with git repos you need to move your HEAD master branch to main or reclone the repos.
Post Reply