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

Commit180a502

Browse files
committed
git.commit: Added test to assure we handle the first commit correctly regarding its parents
1 parenta803803 commit180a502

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎lib/git/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ def remove(self, items, working_tree=False, **kwargs):
10231023
Returns
10241024
List(path_string, ...) list of paths that have been removed effectively.
10251025
This is interesting to know in case you have provided a directory or
1026-
globs. Paths are relative to the
1026+
globs. Paths are relative to therepository.
10271027
"""
10281028
args=list()
10291029
ifnotworking_tree:

‎test/git/test_commit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ def test_traversal(self):
8888
# traversal should stop when the beginning is reached
8989
self.failUnlessRaises(StopIteration,first.traverse().next)
9090

91+
# parents of the first commit should be empty ( as the only parent has a null
92+
# sha )
93+
assertlen(first.parents)==0
94+
95+
9196
@patch_object(Git,'_call_process')
9297
deftest_rev_list_bisect_all(self,git):
9398
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp