2012-02-15 17:34:15 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2012-02-16 12:06:33 +01:00
|
|
|
from githgtests import GitHgTests
|
2012-02-15 17:34:15 +01:00
|
|
|
from gitfixtures import GitFixtures
|
|
|
|
from utils import run_git
|
|
|
|
|
2012-02-16 12:06:33 +01:00
|
|
|
class GitTests(GitHgTests):
|
2012-02-15 17:34:15 +01:00
|
|
|
scm = 'git'
|
|
|
|
initial_clone_command = 'git clone'
|
|
|
|
update_cache_command = 'git fetch'
|
|
|
|
fixtures_class = GitFixtures
|
|
|
|
|
2012-02-16 12:06:33 +01:00
|
|
|
abbrev_hash_format = '%h'
|
|
|
|
timestamp_format = '%at'
|
|
|
|
|
2012-02-15 17:34:15 +01:00
|
|
|
def default_version(self):
|
|
|
|
return self.timestamps(self.rev(2))
|