Skip to content

Commit 0c3493f

Browse files
authored
Only add already tracked files to git (#1312)
1 parent a40ac01 commit 0c3493f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vars/artifactSetVersion.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ void call(Map parameters = [:], Closure body = null) {
191191

192192
try {
193193
sh """#!/bin/bash
194-
git add .
194+
git add . --update
195195
git ${gitConfig} commit -m 'update version ${newVersion}'
196196
git tag ${config.tagPrefix}${newVersion}"""
197197
config.gitCommitId = gitUtils.getGitCommitIdOrNull()

0 commit comments

Comments
 (0)