Skip to content

Commit d906cd0

Browse files
committed
register-git-cache.sh: do_list_subrepos(): this routine is noisy and time-hogging as it is, report the start and end regardless of CI_TIME setting
1 parent 22f4701 commit d906cd0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

register-git-cache.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,8 @@ do_list_subrepos() {
366366
local TS_END=0
367367
local TS_TEXT=''
368368

369-
if [ -n "$CI_TIME" ]; then
370-
[ -z "$GDATE" ] || TS_START="`$GDATE -u +%s`"
371-
echo "[D] `date`: Discovering submodules (if any) referenced from any tip commit of repo(s): $*" >&2
372-
fi
369+
[ -z "$GDATE" ] || TS_START="`$GDATE -u +%s`"
370+
echo "[I] `date`: Discovering submodules (if any) referenced from any tip commit of repo(s): $*" >&2
373371

374372
( # List all unique branches/tags etc. known in the repo(s) from argument,
375373
# and from each branch, get a .gitmodules if any and URLs from it:
@@ -464,10 +462,8 @@ do_list_subrepos() {
464462
echo "[D] `date`: Completed raw discovery of submodules (if any) referenced from any tip commit of repo(s): $*" >&2
465463
fi
466464
) | sort | uniq
467-
if [ -n "$CI_TIME" ]; then
468-
[ -z "$GDATE" ] || { TS_END="`$GDATE -u +%s`" ; TS_TEXT=" after $(($TS_END - $TS_START)) whole seconds"; }
469-
echo "[D] `date`: Finished discovering and filtering submodules (if any) referenced from any tip commit of repo(s)${TS_TEXT}: $*" >&2
470-
fi
465+
[ -z "$GDATE" ] || { TS_END="`$GDATE -u +%s`" ; TS_TEXT=" after $(($TS_END - $TS_START)) whole seconds"; }
466+
echo "[I] `date`: Finished discovering and filtering submodules (if any) referenced from any tip commit of repo(s)${TS_TEXT}: $*" >&2
471467
# ...in the end, return all unique Git URLs registered as git submodules
472468
}
473469

0 commit comments

Comments
 (0)