#!/bin/bash # # Just mirror (clone or fetch) specified git repository # - no other mess (eg submodules, just clean mirror) # # Usage: # mirror-main-repo # Unofficial strict mode set -euo pipefail IFS=$'\n\t' source $(dirname $(realpath $0))/gen-mirror-path function updateOrCreate(){ # implemented in RepoTool } function getLastCommit(){ # replaced by git_tool repo hash } updateOrCreate $1