From 8d0c5e3faa5e8e5f7006715bbd3e831e622028fe Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 14 Jul 2023 02:26:24 +0100 Subject: (Scripts>repo_*)~create_repo->repo_create,+repo description get/set Better creating of repositories, repo_create now takes description for second argument and new scripts to do it post creation as well. --- Scripts/.local/scripts/create_repo | 4 ---- Scripts/.local/scripts/repo_create | 7 +++++++ Scripts/.local/scripts/repo_desc_get | 3 +++ Scripts/.local/scripts/repo_desc_set | 3 +++ 4 files changed, 13 insertions(+), 4 deletions(-) delete mode 100755 Scripts/.local/scripts/create_repo create mode 100755 Scripts/.local/scripts/repo_create create mode 100755 Scripts/.local/scripts/repo_desc_get create mode 100755 Scripts/.local/scripts/repo_desc_set (limited to 'Scripts/.local') diff --git a/Scripts/.local/scripts/create_repo b/Scripts/.local/scripts/create_repo deleted file mode 100755 index 1191c4c..0000000 --- a/Scripts/.local/scripts/create_repo +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh - -ssh git@git.aryadevchavali.com "mkdir -p /git/$1.git; git init --bare /git/$1.git"; -git clone git@git.aryadevchavali.com:/git/$1 diff --git a/Scripts/.local/scripts/repo_create b/Scripts/.local/scripts/repo_create new file mode 100755 index 0000000..325a2bf --- /dev/null +++ b/Scripts/.local/scripts/repo_create @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +ssh git@git.aryadevchavali.com "mkdir -p /git/$1.git; git init --bare /git/$1.git; +cd /git/$1.git; +git config gitweb.owner \"Aryadev Chavali \"; +git config gitweb.description \"$2\""; +git clone git@git.aryadevchavali.com:/git/$1 diff --git a/Scripts/.local/scripts/repo_desc_get b/Scripts/.local/scripts/repo_desc_get new file mode 100755 index 0000000..883c88b --- /dev/null +++ b/Scripts/.local/scripts/repo_desc_get @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +ssh git@git.aryadevchavali.com "cd /git/$1.git; git config gitweb.description"; diff --git a/Scripts/.local/scripts/repo_desc_set b/Scripts/.local/scripts/repo_desc_set new file mode 100755 index 0000000..a33d836 --- /dev/null +++ b/Scripts/.local/scripts/repo_desc_set @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +ssh git@git.aryadevchavali.com "cd /git/$1.git; git config gitweb.description \"$2\""; -- cgit v1.2.3-13-gbd6f