Merge branch 'dl/branch-cleanup' into master

Last minute fix-up to tests for portability.

* dl/branch-cleanup:
  t3200: don't grep for `strerror()` string
This commit is contained in:
Junio C Hamano 2020-07-18 16:35:22 -07:00
commit ae46588be0

View File

@ -870,7 +870,7 @@ test_expect_success '--set-upstream-to fails on locked config' '
>.git/config.lock && >.git/config.lock &&
git branch locked && git branch locked &&
test_must_fail git branch --set-upstream-to locked 2>err && test_must_fail git branch --set-upstream-to locked 2>err &&
test_i18ngrep "could not lock config file .git/config: File exists" err test_i18ngrep "could not lock config file .git/config" err
' '
test_expect_success 'use --set-upstream-to modify HEAD' ' test_expect_success 'use --set-upstream-to modify HEAD' '
@ -901,7 +901,7 @@ test_expect_success '--unset-upstream should fail if config is locked' '
git branch --set-upstream-to locked && git branch --set-upstream-to locked &&
>.git/config.lock && >.git/config.lock &&
test_must_fail git branch --unset-upstream 2>err && test_must_fail git branch --unset-upstream 2>err &&
test_i18ngrep "could not lock config file .git/config: File exists" err test_i18ngrep "could not lock config file .git/config" err
' '
test_expect_success 'test --unset-upstream on HEAD' ' test_expect_success 'test --unset-upstream on HEAD' '