24 lines
408 B
Bash
Executable File
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 |