Return to repo list

remgit-scripts

A collection of scripts for use with a simple remote git service.
Return to HMagellan.com

commit 7e124d7c0cafe9425cd5f6457c39c305f738efff
parent 758b7d38d871dbe25f4a8c23c3884dfc18f8f8fb
Author: Erik Letson <hmagellan@tutamail.com>
Date:   Sat,  4 Jul 2020 07:52:29 -0500

fix .git formatting issue

Diffstat:
Mupstagit.sh | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/upstagit.sh b/upstagit.sh @@ -17,6 +17,12 @@ STAGIT_INDEX_COM="$STAGIT_COM-index" # Update web frontend for each repo for i in $(ls $REPO_PATH); do + # Format away the '.git' at the end of the repo name, if it is there + if [[$i == *".git" ]] + then + old_i=$i + i=$(sed 's,\.git$,,' <<< $i) + fi if [[ -d $WEB_PATH/$WEB_REPO_DIR/$i ]] then cd $WEB_PATH/$WEB_REPO_DIR/$i @@ -25,7 +31,7 @@ for i in $(ls $REPO_PATH); do mkdir $WEB_PATH/$WEB_REPO_DIR/$i cd $WEB_PATH/$WEB_REPO_DIR/$i fi - $STAGIT_COM $REPO_PATH/$i + $STAGIT_COM $REPO_PATH/$old_i done # Update index.html