repo-cloner/old/src/mirror-main-repo

24 lines
408 B
Plaintext
Raw Normal View History

2018-02-05 15:47:39 +01:00
#!/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
2018-02-05 15:47:39 +01:00
}
function getLastCommit(){
# replaced by git_tool repo hash
2018-02-05 15:47:39 +01:00
}
updateOrCreate $1