summaryrefslogtreecommitdiff
path: root/pkgs/patches/cgit-main-instead-of-master.patch
diff options
context:
space:
mode:
authorstuebinm2024-03-05 03:05:17 +0100
committerstuebinm2024-03-05 03:05:17 +0100
commitc11127995defe25c8b4164389750672a25e61fc0 (patch)
tree7b68c10dfd88fb401448d6bbfab3288df7b5afc1 /pkgs/patches/cgit-main-instead-of-master.patch
parent911e1fd4986c0556321457a5606f0e747ef556c6 (diff)
restructure & general cleanup
- pkgs/ should now also contain all package overrides - pkgs/patches/ now contains all patches - nix flake info succeeds again - still not sure what to do about scripts - services which are not used should not be kept around this long
Diffstat (limited to 'pkgs/patches/cgit-main-instead-of-master.patch')
-rw-r--r--pkgs/patches/cgit-main-instead-of-master.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/patches/cgit-main-instead-of-master.patch b/pkgs/patches/cgit-main-instead-of-master.patch
new file mode 100644
index 0000000..21f6b00
--- /dev/null
+++ b/pkgs/patches/cgit-main-instead-of-master.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
+