Solved gitup: read failure

Starting yesterday, I'm having trouble downloading the FreeBSD ports as follows:

Code:
[root@squid 27.May 11:17am ~]# /usr/local/bin/gitup -v1 ports
# Scanning local repository...
# Host: github.com
# Port: 443
# Repository Path: /freebsd/freebsd-ports.git
# Target Directory: /usr/ports
# Have: a1bd6c4acd55d48f35caef7ed5e7f7abb8ab72e1
gitup: process_command: read failure:
HTTP/1.1 403 Forbidden
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Strict-Transport-Security: max-age=31536000
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-XSS-Protection: 0
Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'
connection: close
<!DOCTYPE html>
<html>
  <head>
    <meta content="origin" name="referrer">
    <title>Forbidden &middot; GitHub</title>
    <style type="text/css" media="screen">
      body {
        background-color: #f1f1f1;
        margin: 0;
      }
      body,
      input,
      button {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      }
      .container { margin: 30px auto 40px auto; width: 800px; text-align: center; }
      a { color: #4183c4; text-decoration: none; font-weight: bold; }
      a:hover { text-decoration: underline; }
      h1, h2, h3 { color: #666; }
      ul { list-style: none; padding: 25px 0; }
      li {
        display: inline;
        margin: 10px 50px 10px 0px;
      }
      .logo { display: inline-block; margin-top: 35px; }
      .logo-img-2x { display: none; }
      @media
      only screen and (-webkit-min-device-pixel-ratio: 2),
      only screen and (   min--moz-device-pixel-ratio: 2),
      only screen and (     -o-min-device-pixel-ratio: 2/1),
      only screen and (     
: Invalid argument
[root@squid 27.May 11:18am ~]#

My gitup.conf as follows:
Code:
# $FreeBSD$
#
# Default configuration options for gitup.conf.
{
        "defaults" : {
                "host"           : "git.freebsd.org",
                "port"           : 443,
                "verbosity"      : 1,
                "work_directory" : "/var/db/gitup",
        },

        "ports" : {
                "host"       : "github.com",
                "repository" : "/freebsd/freebsd-ports.git",
                "branch"     : "main",
                "target"     : "/usr/ports",
                "ignores"    : [
                        "distfiles",
                        "packages",
                ],
        },

        "quarterly" : {
                "host"       : "github.com",
                "repository" : "/freebsd/freebsd-ports.git",
                "branch"     : "quarterly",
                "target"     : "/usr/ports",
                "ignores"    : [
                        "distfiles",
                        "packages",
                ]
        },

        "release" : {
                "repository" : "/src.git",
                "branch"     : "releng/13.0",
                "target"     : "/usr/src",
                "ignores"    : [
                        "sys/amd64/conf",
                        "sys/arm64/conf",
                        "sys/i386/conf",
                        "sys/pc98/conf",
                        "sys/powerpc/conf",
                        "sys/riscv/conf",
                        "sys/sparc64/conf",
                ]
        },

        "stable" : {
                "repository" : "/src.git",
                "branch"     : "stable/13",
                "target"     : "/usr/src",
                "ignores"    : [
                        "sys/amd64/conf",
                        "sys/arm64/conf",
                        "sys/i386/conf",
                        "sys/pc98/conf",
                        "sys/powerpc/conf",
                        "sys/riscv/conf",
                        "sys/sparc64/conf",
                ]
        },

        "current" : {
                "repository" : "/src.git",
                "branch"     : "main",
                "target"     : "/usr/src",
                "ignores"    : [
                        "sys/amd64/conf",
[root@squid 27.May 11:48am /usr/local/etc]#

Is anyone having trouble retrieving the ports using gitup? Not using a proxy, just a direct connection.
 
Github seems to be returning a 403 for some reason. Not sure why, the URL looks correct to me.

Edit: Oh.
Code:
"repository" : "/freebsd/freebsd-ports.git",
That should probably be:
Code:
"repository_path" : "/freebsd/freebsd-ports.git",

Code:
     repository_path   The repository path to use.
gitup.conf(5)
 
Well well, I changed the variable name and that didn't work. Next, I replaced the gitup.conf file with the gitup.conf.sample file and reran. This time it worked.
 
Last edited by a moderator:
Back
Top