Browse code

Make it easier to debug swgger-gen flakes

Sometimes this check fails, but git status doesn't give us enough information
to debug the failure.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>

Daniel Nephin authored on 2018/02/03 04:07:40
Showing 1 changed files
... ...
@@ -10,7 +10,7 @@ unset IFS
10 10
 if [ ${#files[@]} -gt 0 ]; then
11 11
 	${SCRIPTDIR}/../generate-swagger-api.sh 2> /dev/null
12 12
 	# Let see if the working directory is clean
13
-	diffs="$(git status --porcelain -- api/types/ 2>/dev/null)"
13
+	diffs="$(git diff -- api/types/)"
14 14
 	if [ "$diffs" ]; then
15 15
 		{
16 16
 			echo 'The result of hack/generate-swagger-api.sh differs'