Skip to content

Commit

Permalink
Merge pull request #2561 from jaypipes/go-mod-cleanup
Browse files Browse the repository at this point in the history
Use git reset instead of git restore
  • Loading branch information
k8s-ci-robot authored Nov 27, 2019
2 parents 4ae00de + 237863a commit 0ae9d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-autoscaler/hack/update-vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ set +o errexit
fi

# Commit go.mod* and vendor
git restore --staged . >&${BASH_XTRACEFD} 2>&1
git reset . >&${BASH_XTRACEFD} 2>&1
git add vendor go.mod go.sum >&${BASH_XTRACEFD} 2>&1
if ! git diff --quiet --cached; then
echo "Commiting vendor, go.mod and go.sum"
Expand Down

0 comments on commit 0ae9d83

Please sign in to comment.