From a45972e7b6691b5ff629623b779757e89025a3b6 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 24 Nov 2026 05:57:46 -0500 Subject: pre-receive: band-aid --- pre-receive | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pre-receive b/pre-receive index 0c03e1c..6dd2205 100755 --- a/pre-receive +++ b/pre-receive @@ -239,17 +239,18 @@ sub read_push_options { } sub set_default_branch { - chomp ($default_branch = `git config get init.defaultBranch`); - if(!length($default_branch)) { - # This seems to happen with repos that were cloned a long - # time ago, I guess because the init.defaultBranch setting - # didn't exist yet in old versions of git? - debug("got empty result from " . - "'git config get init.defaultBranch', " . - "assuming 'master'"); - $default_branch = "master"; - } - debug("default branch is '$default_branch'"); +## chomp ($default_branch = `git config get init.defaultBranch`); +## if(!length($default_branch)) { +## # This seems to happen with repos that were cloned a long +## # time ago, I guess because the init.defaultBranch setting +## # didn't exist yet in old versions of git? +## debug("got empty result from " . +## "'git config get init.defaultBranch', " . +## "assuming 'master'"); +## $default_branch = "master"; +## } +## debug("default branch is '$default_branch'"); + $default_branch = 'master'; # for testing } sub init_colors { -- cgit v1.2.3