TestCleanTree returns non-zero if diff between index and local repository
(ctx context.Context)
| 47 | |
| 48 | // TestCleanTree returns non-zero if diff between index and local repository |
| 49 | func TestCleanTree(ctx context.Context) *exec.Cmd { |
| 50 | cmd := exec.CommandContext( |
| 51 | ctx, |
| 52 | "git", |
| 53 | "diff-index", |
| 54 | "--quiet", |
| 55 | "HEAD", |
| 56 | "--ignore-submodules") |
| 57 | |
| 58 | return cmd |
| 59 | } |
| 60 | |
| 61 | // EmptyCommit simply create an empty commit |
| 62 | func EmptyCommit( |