Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdff4bdd

Browse files
jeking3Byron
authored andcommitted
Fix test-only issue with git 2.20 or later handling a clobbered tag
1 parent7a6ca8c commitdff4bdd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎git/test/test_remote.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,15 @@ def get_info(res, remote, name):
253253
self.assertEqual(tinfo.ref.commit,rtag.commit)
254254
self.assertTrue(tinfo.flags&tinfo.NEW_TAG)
255255

256-
# adjust tag commit
256+
# adjustthe localtag commit
257257
Reference.set_object(rtag,rhead.commit.parents[0].parents[0])
258-
res=fetch_and_test(remote,tags=True)
258+
259+
# as of git 2.20 one cannot clobber local tags that have changed without
260+
# specifying --force, and the test assumes you can clobber, so...
261+
force=None
262+
ifrw_repo.git.version_info[:2]>= (2,20):
263+
force=True
264+
res=fetch_and_test(remote,tags=True,force=force)
259265
tinfo=res[str(rtag)]
260266
self.assertEqual(tinfo.commit,rtag.commit)
261267
self.assertTrue(tinfo.flags&tinfo.TAG_UPDATE)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp