Skip to content

Commit 25b7b24

Browse files
committed
fix(cd): improving the porcelain command
1 parent 4420ad6 commit 25b7b24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

azure-devops/templates/cd-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ steps:
176176
inputs:
177177
script: |
178178
# Check for changes
179-
changeCount=$(git status --porcelain | wc -l)
179+
changeCount=$(git status --porcelain "../${{ parameters.submoduleDir }}" | wc -l)
180180
if [ "$changeCount" -eq 0 ]; then
181181
echo "##vso[task.logissue type=warning]No changes to commit."
182182
exit 0

0 commit comments

Comments
 (0)