Since Git version v2.29.0, the `git symbolic-ref` command has started adding extraneous entries to the ref log of the symbolic ref it's updating. This change was inadvertently introduced in commit 523fa69c36744ae6 ("reflog: cleanse messages in the refs.c layer", 2020-07-10, v2.29.0). A bug report [1] was made about a failing test in the TopGit test suite. Further investigations into the cause led to this patch set. 1/2 - adds new tests to monitor this behavior 2/2 - corrects the problem The tests added in 1/2 are marked `test_expect_failure` and then changed to `test_expect_success` in 2/2. -Kyle [1]: <https://github.com/mackyle/topgit/issues/17> Kyle J. McKay (2): t/t1417: test symbolic-ref effects on ref logs refs.c: avoid creating extra unwanted reflog entries refs.c | 16 +++---- t/t1417-reflog-symref.sh | 91 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+), 7 deletions(-) create mode 100755 t/t1417-reflog-symref.sh --