diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-07-14 02:26:24 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-07-14 02:26:24 +0100 |
commit | 8d0c5e3faa5e8e5f7006715bbd3e831e622028fe (patch) | |
tree | a970b9d51b7d48af7236ae3b697fad73f2ac7553 /Scripts/.local | |
parent | 450b048f8ef33e233659de0a165950f4384033c1 (diff) | |
download | dotfiles-8d0c5e3faa5e8e5f7006715bbd3e831e622028fe.tar.gz dotfiles-8d0c5e3faa5e8e5f7006715bbd3e831e622028fe.tar.bz2 dotfiles-8d0c5e3faa5e8e5f7006715bbd3e831e622028fe.zip |
(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.
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-x | Scripts/.local/scripts/create_repo | 4 | ||||
-rwxr-xr-x | Scripts/.local/scripts/repo_create | 7 | ||||
-rwxr-xr-x | Scripts/.local/scripts/repo_desc_get | 3 | ||||
-rwxr-xr-x | Scripts/.local/scripts/repo_desc_set | 3 |
4 files changed, 13 insertions, 4 deletions
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 <aryadev@aryadevchavali.com>\"; +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\""; |