Merge pull request #1996 from flichtenheld/git-rev-parse · gitpython-developers/GitPython@333786c

Original file line numberDiff line numberDiff line change

@@ -1064,9 +1064,9 @@ def test_rev_parse(self):

10641064

# TODO: Dereference tag into a blob 0.1.7^{blob} - quite a special one.

10651065

# Needs a tag which points to a blob.

10661066
1067-

# ref^0 returns commit being pointed to, same with ref~0, and ^{}

1067+

# ref^0 returns commit being pointed to, same with ref~0, ^{}, and ^{commit}

10681068

tag = rev_parse("0.1.4")

1069-

for token in ("~0", "^0", "^{}"):

1069+

for token in ("~0", "^0", "^{}", "^{commit}"):

10701070

self.assertEqual(tag.object, rev_parse("0.1.4%s" % token))

10711071

# END handle multiple tokens

10721072