git-diff check happens post-git-add; the check needs to happen vs. the staged files, if not, git-diff will always be empty
parent
b294c5381a
commit
795ec46c81
|
@ -26,7 +26,7 @@ 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)
|
||||
@if ! git diff --quiet --exit-code; then \
|
||||
@if ! git diff --cached --quiet --exit-code; then \
|
||||
git commit -m "(js/css) Update generated files"; \
|
||||
else \
|
||||
echo "Nothing to commit; skipping git-commit"; \
|
||||
|
|
Loading…
Reference in New Issue