mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Migrate sha -> rev
This commit is contained in:
parent
184e22e81f
commit
5651c66995
19 changed files with 215 additions and 107 deletions
|
|
@ -19,8 +19,8 @@ def test_make_archive(tempdir_factory):
|
|||
open(os.path.join(git_path, 'foo'), 'a').close()
|
||||
cmd_output('git', '-C', git_path, 'add', '.')
|
||||
cmd_output('git', '-C', git_path, 'commit', '-m', 'foo')
|
||||
# We'll use this sha
|
||||
head_sha = git.head_sha(git_path)
|
||||
# We'll use this rev
|
||||
head_rev = git.head_rev(git_path)
|
||||
# And check that this file doesn't exist
|
||||
open(os.path.join(git_path, 'bar'), 'a').close()
|
||||
cmd_output('git', '-C', git_path, 'add', '.')
|
||||
|
|
@ -28,7 +28,7 @@ def test_make_archive(tempdir_factory):
|
|||
|
||||
# Do the thing
|
||||
archive_path = make_archives.make_archive(
|
||||
'foo', git_path, head_sha, output_dir,
|
||||
'foo', git_path, head_rev, output_dir,
|
||||
)
|
||||
|
||||
assert archive_path == os.path.join(output_dir, 'foo.tar.gz')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue