From f369d82e136a93589f1b1d6c255b10de48e48db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Laboissi=C3=A8re?= Date: Sat, 10 Dec 2022 16:11:55 -0300 Subject: add-git-repo: Set initial branch to main --- add-git-repo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add-git-repo b/add-git-repo index f583642..ec68235 100755 --- a/add-git-repo +++ b/add-git-repo @@ -2,7 +2,7 @@ ### Create a centralized Git repository -### Copyright (C) 2015 Rafael Laboissiere +### Copyright (C) 2015, 2022 Rafael Laboissiere ### ### This program is free software; you can redistribute it and/or modify it under ### the terms of the GNU General Public License as published by the Free Software @@ -58,7 +58,7 @@ if [ -d $path ] ; then exit 1 fi mkdir $path -( cd $path ; git init --bare) +( cd $path ; git init --bare --initial-branch=main ) chown -R $user:$user $path echo "$prog:I: Created Git repository $path" echo "$prog:I: ls -ld $path" -- cgit v1.2.3