all: remove reliance on --compact-summary

This flag is recently added to git. Avoid it for now.

Change-Id: I007f3cc12ec6ef37bc6d70ddc346b7af7983879e
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/220501
Reviewed-by: Damien Neil <dneil@google.com>
This commit is contained in:
Joe Tsai 2020-02-21 15:54:42 -08:00 committed by Joe Tsai
parent 4d8936d0db
commit a88c3c4068

View File

@ -53,7 +53,7 @@ func Test(t *testing.T) {
// going through all the presubmits.
//
// Fail the test late, so we can test uncommitted changes with -failfast.
diff := mustRunCommand(t, "git", "diff", "--compact-summary", "HEAD")
diff := mustRunCommand(t, "git", "diff", "HEAD")
if strings.TrimSpace(diff) != "" {
fmt.Printf("WARNING: working tree contains uncommitted changes:\n%v\n", diff)
}