mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 00:45:09 +00:00
Merge pull request #200 from inverse-inc/fix-empty-make-prod-commit
Prevents 'make prod' from failing on empty git-commits
This commit is contained in:
@@ -26,7 +26,11 @@ prod:
|
||||
grunt --stack build
|
||||
git update-index --no-assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
|
||||
git add -f $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
|
||||
git commit -m "(js/css) Update generated files"
|
||||
@if ! git diff --quiet --exit-code; then \
|
||||
git commit -m "(js/css) Update generated files"; \
|
||||
else \
|
||||
echo "Nothing to commit; skipping git-commit"; \
|
||||
fi
|
||||
git update-index --assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
|
||||
|
||||
all:
|
||||
|
||||
Reference in New Issue
Block a user