mirror of
https://github.com/clearlinux/common.git
synced 2026-08-19 11:56:24 +00:00
Specify branch name of main for git init of package repos
The default package repo branches are now `main`. Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ mockproper:
|
||||
$(MOCK) --clean --uniqueext=$(PKG_NAME)
|
||||
|
||||
configemail:
|
||||
@test -d .git || git init
|
||||
@test -d .git || git init -b main
|
||||
@$(call subjectprefix,$(PKG_NAME))
|
||||
@echo -n "Subject prefix email configured to: "
|
||||
@git config --get format.subjectPrefix
|
||||
|
||||
+2
-2
@@ -216,7 +216,7 @@ autospecnew: preautospecnew-checks localreponotice
|
||||
mkdir -p $(TOPLVL)/packages/$(NAME); \
|
||||
( \
|
||||
cd $(TOPLVL)/packages/$(NAME); \
|
||||
git init; \
|
||||
git init -b main; \
|
||||
git remote add origin $(PKG_BASE_URL)/$(NAME); \
|
||||
$(call gitoliteurl,packages/$(NAME)); \
|
||||
$(call subjectprefix,$(NAME)); \
|
||||
@@ -267,7 +267,7 @@ autospecnewgo: preautospecnew-checks localreponotice
|
||||
mkdir -p $(TOPLVL)/packages/$(NAME); \
|
||||
( \
|
||||
cd $(TOPLVL)/packages/$(NAME); \
|
||||
git init; \
|
||||
git init -b main; \
|
||||
git remote add origin $(PKG_BASE_URL)/$(NAME); \
|
||||
$(call gitoliteurl,packages/$(NAME)); \
|
||||
$(call subjectprefix,$(NAME)); \
|
||||
|
||||
Reference in New Issue
Block a user