c135514295
- change default versionformat from author date (%at) to commiter date (%ct) for git, to fix issues with cherry-picked commits resulting in decreased version OBS-URL: https://build.opensuse.org/request/show/136480 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=52
18 lines
424 B
Python
18 lines
424 B
Python
#!/usr/bin/python
|
|
|
|
from githgtests import GitHgTests
|
|
from gitfixtures import GitFixtures
|
|
from utils import run_git
|
|
|
|
class GitTests(GitHgTests):
|
|
scm = 'git'
|
|
initial_clone_command = 'git clone'
|
|
update_cache_command = 'git fetch'
|
|
fixtures_class = GitFixtures
|
|
|
|
abbrev_hash_format = '%h'
|
|
timestamp_format = '%ct'
|
|
|
|
def default_version(self):
|
|
return self.timestamps(self.rev(2))
|