From 15cf165c4fc04c196f1f9dd81562fd3aab1b5256 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 6 Feb 2016 20:54:07 +0200 Subject: When cloning git repo, checkout master This makes test suite pass again, when the (real!) obnam git repo I have locally doesn't have master checked out. --- obbench | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'obbench') diff --git a/obbench b/obbench index 13c875a..f719cad 100755 --- a/obbench +++ b/obbench @@ -57,7 +57,9 @@ class ObnamBenchmarker(cliapp.Application): if os.path.exists(gitdir): cliapp.runcmd(['git', 'pull'], cwd=gitdir) else: - cliapp.runcmd(['git', 'clone', spec['git'], gitdir]) + cliapp.runcmd( + ['git', 'clone', '-b', 'master', spec['git'], + gitdir]) def gitdir(self, statedir): return os.path.join(statedir, 'git') -- cgit v1.2.1