aboutsummaryrefslogtreecommitdiff
path: root/pre-receive
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-11-24 05:57:46 -0500
committerB. Watson <urchlay@slackware.uk>2026-11-24 05:57:46 -0500
commita45972e7b6691b5ff629623b779757e89025a3b6 (patch)
tree9a863f1f0799dc84253fe1daf2f9ef077c8facdf /pre-receive
parent8893f0a4a236081f8d994627f7050d930b442cac (diff)
downloadsbo-maintainer-tools-a45972e7b6691b5ff629623b779757e89025a3b6.tar.gz
pre-receive: band-aid
Diffstat (limited to 'pre-receive')
-rwxr-xr-xpre-receive23
1 files 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 {