Skip to content

Commit 199a2da

Browse files
committed
add run option prune-tags
1 parent 30042b5 commit 199a2da

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Go
2020
uses: actions/setup-go@v3
2121
with:
22-
go-version: 1.21.x
22+
go-version: 1.22.x
2323

2424
- name: Build
2525
shell: bash

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Go
2121
uses: actions/setup-go@v3
2222
with:
23-
go-version: 1.21.x
23+
go-version: 1.22.x
2424

2525
- name: golangci-lint
2626
uses: golangci/golangci-lint-action@v3

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
test:
1515
strategy:
1616
matrix:
17-
go-version: [1.21.x]
17+
go-version: [1.22.x]
1818
os: [ubuntu-latest]
1919
runs-on: ubuntu-latest
2020
steps:
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install Go
2424
uses: actions/setup-go@v3
2525
with:
26-
go-version: 1.21.x
26+
go-version: 1.22.x
2727

2828
- name: Test
2929
shell: bash

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
- branch - Наименование корневой ветки: master/main
1414
- all - Выполнить все шаги checkout master, fetch, pull, по умолчанию выключено
1515
- checkout - Выполнить git checkout на корневую ветку, по умолчанию выключено
16-
- fetch - Выполнить git fetch --prune, по умолчанию выключено
16+
- fetch - Выполнить git fetch --prune --prune-tags, по умолчанию выключено
1717
- pull - Выполнить git pull, по умолчанию выключено
1818
- execute_timeout - Максимальное время выполнения всех действий над допкаталогом, по умолчанию 30сек

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/Format-C-eft/git-update
22

3-
go 1.21
3+
go 1.22
44

55
require github.com/spf13/cobra v1.8.0
66

internal/cmd/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func processDir(dir string, ch chan resultLogChan) {
123123
}
124124
resultLogs.AddLog("success: git checkout")
125125

126-
if _, err := shell_executor.Run(ctx, dir, "git", "fetch", "--prune"); err != nil {
126+
if _, err := shell_executor.Run(ctx, dir, "git", "fetch", "--prune", "--prune-tags"); err != nil {
127127
resultLogs.AddLog("error: git fetch: " + err.Error())
128128
return
129129
}

0 commit comments

Comments
 (0)