diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-02-06 20:54:07 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-02-06 20:55:43 +0200 |
commit | 15cf165c4fc04c196f1f9dd81562fd3aab1b5256 (patch) | |
tree | 90b39d7b634c559c272865d1e63eb24520d84b30 /obbench | |
parent | 8349841eb65e81bc7d0b09f33fce86fb4f613604 (diff) | |
download | obnam-benchmarks-15cf165c4fc04c196f1f9dd81562fd3aab1b5256.tar.gz |
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.
Diffstat (limited to 'obbench')
-rwxr-xr-x | obbench | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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') |