Commit 4639b93e authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use a quieter command to check repo integrity

parent f0fe3503
......@@ -45,10 +45,10 @@ func TestAllowedClone(t *testing.T) {
cloneCmd := exec.Command("git", "clone", remote, checkoutDir)
runOrFail(t, cloneCmd)
// We may have cloned an 'empty' repository, 'git show' will fail in it
showCmd := exec.Command("git", "show")
showCmd.Dir = checkoutDir
runOrFail(t, showCmd)
// We may have cloned an 'empty' repository, 'git log' will fail in it
logCmd := exec.Command("git", "log", "-1", "--oneline")
logCmd.Dir = checkoutDir
runOrFail(t, logCmd)
}
func TestDeniedClone(t *testing.T) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment