aboutsummaryrefslogtreecommitdiff
path: root/repos/archive/ports/git
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-05-24 15:40:32 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-05-24 15:40:32 +0000
commitdea2a1fa20fc8e843cd85e5920a67b9054d00b2e (patch)
treef331ff92dc5fd26f5803b483a24a0a21fd9bb97a /repos/archive/ports/git
parentef5bfeb93345a5a681d88e99775622bf28defd8d (diff)
downloadalicelinux-dea2a1fa20fc8e843cd85e5920a67b9054d00b2e.tar.gz
alicelinux-dea2a1fa20fc8e843cd85e5920a67b9054d00b2e.zip
Woodpecker CI ef5bfeb93345a5a681d88e99775622bf28defd8d [SKIP CI]
Diffstat (limited to 'repos/archive/ports/git')
-rw-r--r--repos/archive/ports/git47
1 files changed, 0 insertions, 47 deletions
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 <file>" >&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"