obs-service-tar_scm/gittests.py
Stephan Kulow c135514295 Accepting request 136480 from home:cthiel1:branches:openSUSE:Tools
- 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
2012-10-03 16:41:45 +00:00

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))