From dea2a1fa20fc8e843cd85e5920a67b9054d00b2e Mon Sep 17 00:00:00 2001 From: Woodpecker CI Date: Sun, 24 May 2026 15:40:32 +0000 Subject: Woodpecker CI ef5bfeb93345a5a681d88e99775622bf28defd8d [SKIP CI] --- repos/archive/ports/git | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 repos/archive/ports/git (limited to 'repos/archive/ports/git') diff --git a/repos/archive/ports/git b/repos/archive/ports/git deleted file mode 100644 index 654a8c77..00000000 --- a/repos/archive/ports/git +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# -# /etc/ports/drivers/git: git driver script for ports(8) -# - -if [ $# -ne 1 ]; then - echo "usage: $0 " >&2 - exit 1 -fi - -. $1 - -if [ -z "$URL" ]; then - echo "URL not set in '$1'" >&2 - exit 2 -fi -if [ -z "$NAME" ]; then - echo "NAME not set in '$1'" >&2 - exit 2 -fi -if [ -z "$BRANCH" ]; then - echo "BRANCH not set in '$1'" >&2 - exit 2 -fi - -REPOSITORY="$PORTS_DIR/$NAME" -if [ -n "$LOCAL_REPOSITORY" ]; then - REPOSITORY="$LOCAL_REPOSITORY" -fi - -echo "Fetching updates from $URL" -echo "Updating collection $NAME" - -cd "$REPOSITORY" 2> "/dev/null" - -if [ $? -lt 1 ]; then - git checkout -q "$BRANCH" - git fetch -q - git diff --pretty=format: --name-status "$BRANCH" origin/"$BRANCH" | sed "s/M\t/ Edit /g; s/A\t/ Checkout /g; s/D\t/ Delete /g" | sort - git clean -q -f - git reset -q --hard origin/"$BRANCH" -else - git clone -q -b "$BRANCH" "$URL" "$REPOSITORY" - ls -1 $REPOSITORY | sed "s/^/ Checkout /" -fi - -echo "Finished successfully" -- cgit v1.2.3