Skip to content

Commit 1a06b7a

Browse files
author
Paulo Gomes
authored
Merge pull request #575 from pjbgf/fix-push
Ensure git status is checked at the correct time
2 parents 43235df + 50cb97f commit 1a06b7a

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

Makefile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,12 @@ ifneq ($(shell grep -o 'LIBGIT2_TAG ?= \w.*' Makefile | cut -d ' ' -f 3), $(shel
225225
exit 1; \
226226
}
227227
endif
228-
ifneq (, $(shell git status --porcelain --untracked-files=no))
229-
@{ \
230-
echo "working directory is dirty:"; \
231-
git --no-pager diff; \
232-
exit 1; \
233-
}
234-
endif
228+
229+
@if [ ! "$$(git status --porcelain --untracked-files=no)" = "" ]; then \
230+
echo "working directory is dirty:"; \
231+
git --no-pager diff; \
232+
exit 1; \
233+
fi
235234

236235
# go-install-tool will 'go install' any package $2 and install it to $1.
237236
define go-install-tool

api/v1beta1/gitrepository_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ type GitRepositorySpec struct {
4444
// The secret name containing the Git credentials.
4545
// For HTTPS repositories the secret must contain username and password
4646
// fields.
47-
// For SSH repositories the secret must contain identity, identity.pub and
48-
// known_hosts fields.
47+
// For SSH repositories the secret must contain identity and known_hosts
48+
// fields.
4949
// +optional
5050
SecretRef *meta.LocalObjectReference `json:"secretRef,omitempty"`
5151

docs/spec/v1beta1/gitrepositories.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ type GitRepositorySpec struct {
1919
// The secret name containing the Git credentials.
2020
// For HTTPS repositories the secret must contain username and password
2121
// fields.
22-
// For SSH repositories the secret must contain identity, identity.pub and
23-
// known_hosts fields.
22+
// For SSH repositories the secret must contain identity and known_hosts
23+
// fields.
2424
// +optional
2525
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
2626

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func main() {
245245
ControllerName: controllerName,
246246
Cache: c,
247247
TTL: ttl,
248-
CacheRecorder: cacheRecorder,
248+
CacheRecorder: cacheRecorder,
249249
}).SetupWithManagerAndOptions(mgr, controllers.HelmChartReconcilerOptions{
250250
MaxConcurrentReconciles: concurrent,
251251
RateLimiter: helper.GetRateLimiter(rateLimiterOptions),

0 commit comments

Comments
 (0)