summaryrefslogtreecommitdiff
path: root/git/test/test_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_index.py')
-rw-r--r--git/test/test_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py
index c7739ce8..9be4031d 100644
--- a/git/test/test_index.py
+++ b/git/test/test_index.py
@@ -882,10 +882,10 @@ class TestIndex(TestBase):
_make_hook(
index.repo.git_dir,
'commit-msg',
- 'echo -n " {0}" >> "$1"'.format(from_hook_message)
+ 'echo -n " {}" >> "$1"'.format(from_hook_message)
)
new_commit = index.commit(commit_message)
- self.assertEqual(new_commit.message, u"{0} {1}".format(commit_message, from_hook_message))
+ self.assertEqual(new_commit.message, u"{} {}".format(commit_message, from_hook_message))
@with_rw_repo('HEAD', bare=True)
def test_commit_msg_hook_fail(self, rw_repo):