You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which causes tests assuming the default branch is called master to fail, e.g.:
# Failed test 'master -> master'
# at /home/dj/.cpanm/work/1663196190.2607250/Code-TidyAll-0.82/t/lib/TestFor/Code/TidyAll/Git.pm line 105.
# (in TestFor::Code::TidyAll::Git->test_git)
# 'remote: 1 file did not pass tidyall check
# remote: [checked] foo.txt
# remote: *** needs tidying
# To /tmp/Code-TidyAll-avES/shared
# ! [remote rejected] main -> main (pre-receive hook declined)
# error: failed to push some refs to '/tmp/Code-TidyAll-avES/shared'
# '
# doesn't match '(?^:master -> master)'
# Looks like you failed 1 test of 4.
The text was updated successfully, but these errors were encountered:
Not sure if this true for all git versions, but git in debian:11 (bullseye) (git version 2.30.2) is using the "main" branch by default. Consequently this test is also failing there.
I just ran into this on my macbook. I edited t/lib/TestFor/Code/TidyAll/Git.pm and replaced master with main and everything worked. I tried djerius's branch but it failed as well.
In my .gitconfig, I have set
which causes tests assuming the default branch is called
master
to fail, e.g.:The text was updated successfully, but these errors were encountered: