diff options
-rwxr-xr-x | add-git-repo | 4 |
1 files 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" |