diff --git a/Makefile b/Makefile index 72824d1c..80ebc28d 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ src/github.com/opencontainers/runc: cp -r "$(RUNC_DIR)" $@ else src/github.com/opencontainers/runc: - git init $@ + git init --initial-branch=main $@ git -C $@ remote add origin "$(RUNC_REMOTE)" endif @@ -57,7 +57,7 @@ src/github.com/containerd/containerd: cp -r "$(CONTAINERD_DIR)" $@ else src/github.com/containerd/containerd: - git init $@ + git init --initial-branch=main $@ git -C $@ remote add origin "$(CONTAINERD_REMOTE)" endif diff --git a/Makefile.win b/Makefile.win index fca03739..1fd35548 100644 --- a/Makefile.win +++ b/Makefile.win @@ -22,7 +22,7 @@ src/github.com/containerd/containerd: Xcopy /E /I "$(CONTAINERD_DIR)" $@ else src/github.com/containerd/containerd: - git init $@ + git init --initial-branch=main $@ git -C $@ remote add origin "$(CONTAINERD_REMOTE)" endif