aboutsummaryrefslogtreecommitdiff
path: root/pre-receive
diff options
context:
space:
mode:
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 {