File tree 6 files changed +11
-11
lines changed
6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 47
47
echo -e " \033[31mNo default revision found to compare against. Argument #1 must be what to diff against (e.g. 'origin/master' or 'HEAD~1').\033[0m" >&2
48
48
exit 1
49
49
fi
50
- base=" $( git merge-base ${rev} HEAD) "
51
- if [ " $( git rev-parse ${rev} ) " == " ${base} " ]; then
50
+ base=" $( git merge-base " ${rev} " HEAD) "
51
+ if [ " $( git rev-parse " ${rev} " ) " == " ${base} " ]; then
52
52
echo -e " Comparing against revision '${rev} '." >&2
53
53
else
54
54
echo -e " Comparing against revision '${rev} ' (merge base ${base} )." >&2
Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ if (( only_changed == 1 )); then
72
72
exit 1
73
73
fi
74
74
fi
75
- base=" $( git merge-base ${rev} HEAD) "
76
- if [ " $( git rev-parse ${rev} ) " == " ${base} " ]; then
75
+ base=" $( git merge-base " ${rev} " HEAD) "
76
+ if [ " $( git rev-parse " ${rev} " ) " == " ${base} " ]; then
77
77
echo -e " Comparing against revision '${rev} '." >&2
78
78
else
79
79
echo -e " Comparing against revision '${rev} ' (merge base ${base} )." >&2
Original file line number Diff line number Diff line change 46
46
echo -e " \033[31mNo default revision found to compare against. Argument #1 must be what to diff against (e.g. 'origin/master' or 'HEAD~1').\033[0m" >&2
47
47
exit 1
48
48
fi
49
- base=" $( git merge-base ${rev} HEAD) "
50
- if [ " $( git rev-parse ${rev} ) " == " ${base} " ]; then
49
+ base=" $( git merge-base " ${rev} " HEAD) "
50
+ if [ " $( git rev-parse " ${rev} " ) " == " ${base} " ]; then
51
51
echo -e " Comparing against revision '${rev} '." >&2
52
52
else
53
53
echo -e " Comparing against revision '${rev} ' (merge base ${base} )." >&2
Original file line number Diff line number Diff line change 60
60
echo -e " \033[31mNo default revision found to compare against. Argument #1 must be what to diff against (e.g. 'origin/master' or 'HEAD~1').\033[0m" >&2
61
61
exit 1
62
62
fi
63
- base=" $( git merge-base ${rev} HEAD) "
64
- if [ " $( git rev-parse ${rev} ) " == " ${base} " ]; then
63
+ base=" $( git merge-base " ${rev} " HEAD) "
64
+ if [ " $( git rev-parse " ${rev} " ) " == " ${base} " ]; then
65
65
echo -e " Comparing against revision '${rev} '." >&2
66
66
else
67
67
echo -e " Comparing against revision '${rev} ' (merge base ${base} )." >&2
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ echo "Comparing against revision '${rev}'." >&2
56
56
# Get the _test version of changed python files.
57
57
typeset -a changed
58
58
IFS=$' \n ' read -r -d ' ' -a changed < \
59
- <( git diff --name-only ${rev} -- \
59
+ <( git diff --name-only " ${rev} " -- \
60
60
| grep " \.py$" \
61
61
| sed -e " s/\.py$/_test.py/" \
62
62
| sed -e " s/_test_test\.py$/_test.py/" \
Original file line number Diff line number Diff line change 49
49
echo -e " \033[31mNo default revision found to compare against. Argument #1 must be what to diff against (e.g. 'origin/master' or 'HEAD~1').\033[0m" >&2
50
50
exit 1
51
51
fi
52
- base=" $( git merge-base ${rev} HEAD) "
53
- if [ " $( git rev-parse ${rev} ) " == " ${base} " ]; then
52
+ base=" $( git merge-base " ${rev} " HEAD) "
53
+ if [ " $( git rev-parse " ${rev} " ) " == " ${base} " ]; then
54
54
echo -e " Comparing against revision '${rev} '." >&2
55
55
else
56
56
echo -e " Comparing against revision '${rev} ' (merge base ${base} )." >&2
You can’t perform that action at this time.
0 commit comments