pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

git_update_repo.sh (482B)


      1 #!/usr/bin/env sh
      2 # SPDX-License-Identifier: AGPL-3.0-or-later
      3 # SPDX-FileCopyrightText: 2021-2024 JayVii <jayvii[AT]posteo[DOT]de>
      4 
      5 # $1 - HTML Root
      6 # $2 - prv/pub
      7 # $3 - repo name
      8 
      9 # Error out if not all options are given
     10 if [ -z "$3" ]; then
     11     echo "Usage:
     12 git_update_repo.sh \\
     13     \"/var/www/git.example.git\" \\
     14     \"pub\" \\
     15     \"stagit-scripts\"
     16     "
     17     exit 1;
     18 fi
     19 
     20 # Git-Repository
     21 cd "${1}/${2}/${3}.git"
     22 
     23 # make branch cloneable via http(s)
     24 git update-server-info
     25