index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-10-05 14:29:20 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-05 14:29:20 +0200 |
commit | 80edbc4dfce3e489ec1d76d82b7d6fe37b675271 (patch) | |
tree | 34ea57e21ff36dce58c0bb0650e343ec6f1cac25 /bin | |
parent | b79c8e8f0b070ba578dfd64a9f936f4c54a0824c (diff) |
-rwxr-xr-x | bin/harvest-commit-times | 12 |
diff --git a/bin/harvest-commit-times b/bin/harvest-commit-times index 163870f..fc876b8 100755 --- a/bin/harvest-commit-times +++ b/bin/harvest-commit-times @@ -58,6 +58,18 @@ if ! verbose_flock ${block_flag} 9; then exit fi +if ! ${i_am_the_master}; then + for repo_name in ${repo_names}; do + eval repo_path='"${repo_paths__'"${repo_name}"'}"' + if [ -d "${repo_path}/.git" ]; then + git -C "${repo_path}" remote update + else + git -C "${repo_path}" fetch origin master:master + fi || \ + true + done +fi + tmp_file=$(mktemp 'tmp.harvest-commit-times.XXXXXXXXXX' --tmpdir) trap 'rm "${tmp_file}"' EXIT |