File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,19 @@ git --work-tree "$deploy_directory" reset --mixed --quiet
42
42
43
43
git --work-tree " $deploy_directory " add --all
44
44
45
- case ` git --work-tree " $deploy_directory " diff --exit-code --quiet HEAD` in
45
+ diff=` git --work-tree " $deploy_directory " diff --exit-code --quiet HEAD`
46
+ case $diff in
46
47
0) echo No changes to files in $deploy_directory . Skipping commit.;;
47
48
1)
48
49
set_user_id
49
50
git --work-tree " $deploy_directory " commit -m \
50
51
" publish: $commit_title " $' \n\n ' " generated from commit $commit_hash "
51
52
git push origin $deploy_branch
52
53
;;
53
- * ) exit 1;;
54
+ * )
55
+ echo git diff exited with code $diff . Aborting.
56
+ exit $diff
57
+ ;;
54
58
esac
55
59
56
60
if [[ $previous_branch = " HEAD" ]]; then
You can’t perform that action at this time.
0 commit comments