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) { ...@@ -45,10 +45,10 @@ func TestAllowedClone(t *testing.T) {
cloneCmd := exec.Command("git", "clone", remote, checkoutDir) cloneCmd := exec.Command("git", "clone", remote, checkoutDir)
runOrFail(t, cloneCmd) runOrFail(t, cloneCmd)
// We may have cloned an 'empty' repository, 'git show' will fail in it // We may have cloned an 'empty' repository, 'git log' will fail in it
showCmd := exec.Command("git", "show") logCmd := exec.Command("git", "log", "-1", "--oneline")
showCmd.Dir = checkoutDir logCmd.Dir = checkoutDir
runOrFail(t, showCmd) runOrFail(t, logCmd)
} }
func TestDeniedClone(t *testing.T) { 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