summaryrefslogtreecommitdiff
path: root/flora/services/0001-main-instead-of-master-branch.patch
diff options
context:
space:
mode:
authorstuebinm2022-09-14 15:12:15 +0200
committerstuebinm2022-09-14 15:15:42 +0200
commitb4651ea5cca0466525a5b33dccd934c946a98837 (patch)
tree69bba12beeabdf421880088ecf7542212e0ad297 /flora/services/0001-main-instead-of-master-branch.patch
parenta8b3203e40fe3b9380a60ce9b8ff8ec2b8a92dc7 (diff)
cgit hopefully change default branch
kinda annoying that i don't get idle-indicators for repos that don't have a master-branch. not sure if this'll fix it though, cgit is weird.
Diffstat (limited to '')
-rw-r--r--flora/services/0001-main-instead-of-master-branch.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/flora/services/0001-main-instead-of-master-branch.patch b/flora/services/0001-main-instead-of-master-branch.patch
new file mode 100644
index 0000000..21f6b00
--- /dev/null
+++ b/flora/services/0001-main-instead-of-master-branch.patch
@@ -0,0 +1,25 @@
+From 9f4e165702819bdab78403e4145db517b915df95 Mon Sep 17 00:00:00 2001
+From: stuebinm <stuebinm@disroot.org>
+Date: Wed, 14 Sep 2022 15:08:32 +0200
+Subject: [PATCH] main instead of master branch
+
+---
+ cgit.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cgit.c b/cgit.c
+index 08d81a1..5b0a016 100644
+--- a/cgit.c
++++ b/cgit.c
+@@ -489,7 +489,7 @@ static char *guess_defbranch(void)
+
+ ref = resolve_ref_unsafe("HEAD", 0, &oid, NULL);
+ if (!ref || !skip_prefix(ref, "refs/heads/", &refname))
+- return "master";
++ return "main";
+ return xstrdup(refname);
+ }
+
+--
+2.36.0
+