0
0
mirror of https://github.com/thegeeklab/wp-git-clone.git synced 2024-06-02 18:29:42 +02:00

add git-lfs as test dep to ci

This commit is contained in:
Robert Kaussow 2023-12-23 01:13:41 +01:00
parent 97503f5a47
commit 49276b9116
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
4 changed files with 7 additions and 12 deletions

View File

@ -14,5 +14,6 @@ steps:
- name: test
image: docker.io/library/golang:1.21
commands:
- apk --update add --no-cache git git-lfs
- apt-get update
- apt-get install -y --no-install-recommends git git-lfs
- make test

View File

@ -147,6 +147,7 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag {
Usage: "change branch name",
EnvVars: []string{"PLUGIN_BRANCH", "CI_COMMIT_BRANCH", "CI_REPO_DEFAULT_BRANCH"},
Destination: &settings.Repo.Branch,
Value: "main",
Category: category,
},
&cli.BoolFlag{

View File

@ -3,6 +3,7 @@ properties:
- name: branch
description: |
Change branch name.
defaultvalue: "main"
- name: ci_netrc_machine
description: |

View File

@ -8,20 +8,12 @@ import (
func Init(repo Repository) *execabs.Cmd {
args := []string{
"init",
"-b",
repo.Branch,
}
if repo.Branch != "" {
args = []string{
"init",
"-b",
repo.Branch,
}
}
cmd := execabs.Command(
return execabs.Command(
gitBin,
args...,
)
return cmd
}