Slackbot
02/13/2023, 10:29 PMOr Weis
02/13/2023, 10:50 PMAvo Sepp
02/13/2023, 10:57 PMgit clone -v --branch=<name> <URL>
and I think you should do git clone -v --depth 1 <URL>
because this also implies --single-branch
and defaults to the remote’s HEAD. So you don’t have to worry whether that’s master or main. I would consider adding --shallow-submodules
as well. Incase the users are creating some sort of submodule hell for themselves. At least you’ll limit the pull to the smallest size.Avo Sepp
02/13/2023, 11:00 PM--branch=<name>
but you might have to have some logic to decide if the ENV var is not null
Avo Sepp
02/13/2023, 11:03 PM--branch=HEAD
command. That would fail.Or Weis
02/13/2023, 11:19 PMAvo Sepp
02/13/2023, 11:23 PMOr Weis
02/13/2023, 11:25 PMAvo Sepp
02/13/2023, 11:26 PMAvo Sepp
02/13/2023, 11:31 PMOr Weis
02/13/2023, 11:48 PM