commit | b0d16c7f7404bfa9979680b5bb4994441a6c0faa | [log] [tgz] |
---|---|---|
author | Brad King <brad.king@kitware.com> | Fri Nov 11 14:50:55 2022 -0500 |
committer | Brad King <brad.king@kitware.com> | Fri Nov 11 15:05:01 2022 -0500 |
tree | 125c39913d7723bcf9b5c8a407af2da211f7ab72 | |
parent | 31893e8c8f580d6a94fc70b85e8cae47300cc6c0 [diff] |
Tests: Fix CTest.UpdateGIT under repo-local defaultBranch config The default branch detection added by commit 26ec2e2b0c (Tests: Update CTest.UpdateGIT test for custom defaultBranch, 2020-12-02, v3.20.0-rc1~355^2) fails if the test is run inside a Git work tree whose `.git` directory configures a `defaultBranch` that is different from the global or system-wide value. Fix the detection to ignore the locally configured value so that we match the `git init` decision.