Discussion:
gitup error after `rm -rf /usr/ports/.git`
Odhiambo Washington
2021-05-31 12:52:37 UTC
Permalink
What am I missing??

I am reading this: Solved - starting port updates | The FreeBSD Forums
<https://forums.freebsd.org/threads/starting-port-updates.79672/#post-504605>


***@gw:/usr/ports/net/gitup # gitup ports
# Host: github.com
# Port: 443
# Repository: /freebsd/freebsd-ports.git
# Target: /usr/ports
gitup: get_commit_details: refs/heads/master doesn't exist in
/freebsd/freebsd-ports.git: Invalid argument
***@gw:/usr/ports/net/gitup # git clone https://git.freebsd.org/ports.git
--branch main /usr/ports
fatal: destination path '/usr/ports' already exists and is not an empty
directory.
***@gw:/usr/ports/net/gitup # mv /usr/ports/ /usr/_ports-b4-gitup
***@gw:/usr/ports/net/gitup # git clone https://git.freebsd.org/ports.git
--branch main /usr/ports
Cloning into '/usr/ports'...
remote: Enumerating objects: 1006, done.
remote: Counting objects: 100% (1006/1006), done.
remote: Compressing objects: 100% (190/190), done.
remote: Total 5047571 (delta 935), reused 816 (delta 816), pack-reused
5046565
Receiving objects: 100% (5047571/5047571), 809.69 MiB | 3.83 MiB/s, done.
Resolving deltas: 100% (3041528/3041528), done.
Updating files: 100% (139586/139586), done.
***@gw:/usr/ports/net/gitup # gitup ports
! A .git directory was found -- gitup does not update this directory which
will cause problems for the official Git client.
! If you wish to use gitup, please remove /usr/ports/.git and rerun gitup.
***@gw:/usr/ports/net/gitup # rm -rf /usr/ports/.git
***@gw:/usr/ports/net/gitup # gitup ports
# Host: github.com
# Port: 443
# Repository: /freebsd/freebsd-ports.git
# Target: /usr/ports
gitup: get_commit_details: refs/heads/master doesn't exist in
/freebsd/freebsd-ports.git: Invalid argument
***@gw:/usr/ports/net/gitup #
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v "^$|^.*#" :-)
Graham Perrin
2021-05-31 16:16:42 UTC
Permalink
On 31/05/2021 13:52, Odhiambo Washington wrote:



Post by Odhiambo Washington
# Host: github.com
# Port: 443
# Repository: /freebsd/freebsd-ports.git
# Target: /usr/ports
gitup: get_commit_details: refs/heads/master doesn't exist in
/freebsd/freebsd-ports.git: Invalid argument
ls -ahl /var/db/gitup/ports


– what, if anything, is there?
Odhiambo Washington
2021-05-31 16:19:10 UTC
Permalink
Post by Graham Perrin

Post by Odhiambo Washington
# Host: github.com
# Port: 443
# Repository: /freebsd/freebsd-ports.git
# Target: /usr/ports
gitup: get_commit_details: refs/heads/master doesn't exist in
/freebsd/freebsd-ports.git: Invalid argument
ls -ahl /var/db/gitup/ports
– what, if anything, is there?
Thanks for listening.


***@gw:/usr/home/wash # ls -ahl /var/db/gitup/ports
ls: /var/db/gitup/ports: No such file or directory
***@gw:/usr/home/wash #
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v "^$|^.*#" :-)
Loading...