MinimalistGit

Project to automate creating git repos on a minimal 'git daemon' server.
Log | Files | Refs | README | LICENSE

commit 54406961bbfa35bdaaa3e9fb545b0960ce89ae6e
parent 14fa3fc15ee1f70de85fd04ca0aeaeb242eb9ccf
Author: Tyler Clark <tyler.clark@foxide.xyz>
Date:   Sun,  9 Feb 2025 21:47:07 -0500

Began working on script for creating new repositories

Diffstat:
ANewRepo.sh | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/NewRepo.sh b/NewRepo.sh @@ -0,0 +1,28 @@ +#!/bin/sh +# This script will automate the creation of Git repositories +# The arguments available for this script are: +# +# -h, --help: Prints a help screen +# -t, --template: makes this a template repository +# -n, --name: The name of the repository (will create a directory with this name) +# -p, --private: make this repository a private repository (will not appear in web interface) + +for i in "$@"; do + case $i in + -h|--help) + echo "Help menu" + ;; + -n|--name) + echo "Dir name: $2" + shift + ;; + --default) + DEFAULT=YES + echo "No arguments passed" + shift + ;; + *) + echo "Something went wrong" + ;; + esac + done