repo-cloner/old/src/mirror-main-repo
Václav Valíček 6463a6bb95
Update, repo tool cloner: recursive clones
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
2022-07-29 17:03:15 +02:00

24 lines
408 B
Bash
Executable File

#!/bin/bash
#
# Just mirror (clone or fetch) specified git repository
# - no other mess (eg submodules, just clean mirror)
#
# Usage:
# mirror-main-repo <url>
# 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