# HG changeset patch # User Manuel Jacob <me@manueljacob.de> # Date 1591988680 -7200 # Fri Jun 12 21:04:40 2020 +0200 # Node ID bcd2dba8053e658e06930e6a9e6f9b19764953a7 # Parent dd6700b046fe962154c151464a3e923679bd1474 tests: make more robust against varying git output and return codes diff --git a/tests/test-illegal-contents.t b/tests/test-illegal-contents.t --- a/tests/test-illegal-contents.t +++ b/tests/test-illegal-contents.t @@ -46,10 +46,16 @@ It may not be legal to check out in Git. It may also be rejected by some git server configurations. $ cd .. - $ git clone hg/.hg/git git + $ # different git versions give different return codes + $ git clone hg/.hg/git git || true Cloning into 'git'... done. error: [Ii]nvalid path 'nested/\.git/hooks/post-update' (re) + fatal: unable to checkout working tree (?) + warning: Clone succeeded, but checkout failed. (?) + You can inspect what was checked out with 'git status' (?) + and retry( the checkout)? with '.*' (re) (?) + (?) Now check something that case-folds to .git, which might let you own Mac users: