diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-04-30 14:49:45 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-30 14:49:45 -0700 |
| commit | 75b182d34ed1ed9aad81dca32430e2d4a5aa49eb (patch) | |
| tree | 53ab572a091652a2fdb8ff9859c36ba3c8f6fa55 /t/t0068-for-each-repo.sh | |
| parent | Merge branch 'js/build-fuzz-more-often' (diff) | |
| parent | maintenance: running maintenance should not stop on errors (diff) | |
| download | git-75b182d34ed1ed9aad81dca32430e2d4a5aa49eb.tar.gz git-75b182d34ed1ed9aad81dca32430e2d4a5aa49eb.zip | |
Merge branch 'js/for-each-repo-keep-going'
A scheduled "git maintenance" job is expected to work on all
repositories it knows about, but it stopped at the first one that
errored out. Now it keeps going.
* js/for-each-repo-keep-going:
maintenance: running maintenance should not stop on errors
for-each-repo: optionally keep going on an error
Diffstat (limited to 't/t0068-for-each-repo.sh')
| -rwxr-xr-x | t/t0068-for-each-repo.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t0068-for-each-repo.sh b/t/t0068-for-each-repo.sh index 4b90b74d5d..95019e01ed 100755 --- a/t/t0068-for-each-repo.sh +++ b/t/t0068-for-each-repo.sh @@ -59,4 +59,20 @@ test_expect_success 'error on NULL value for config keys' ' test_cmp expect actual ' +test_expect_success '--keep-going' ' + git config keep.going non-existing && + git config --add keep.going . && + + test_must_fail git for-each-repo --config=keep.going \ + -- branch >out 2>err && + test_grep "cannot change to .*non-existing" err && + test_must_be_empty out && + + test_must_fail git for-each-repo --config=keep.going --keep-going \ + -- branch >out 2>err && + test_grep "cannot change to .*non-existing" err && + git branch >expect && + test_cmp expect out +' + test_done |
