File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ def format(self):
48
48
""":return: a string suitable to be placed in a reflog file"""
49
49
act = self .actor
50
50
time = self .time
51
- return u"{0 } {1 } {2 } <{3 }> {4 !s} {5 }\t {6 }\n " .format (self .oldhexsha ,
52
- self .newhexsha ,
53
- act .name ,
54
- act .email ,
55
- time [0 ],
56
- altz_to_utctz_str (time [1 ]),
57
- self .message )
51
+ return u"{} {} {} <{}> {!s} {}\t {}\n " .format (self .oldhexsha ,
52
+ self .newhexsha ,
53
+ act .name ,
54
+ act .email ,
55
+ time [0 ],
56
+ altz_to_utctz_str (time [1 ]),
57
+ self .message )
58
58
59
59
@property
60
60
def oldhexsha (self ):
Original file line number Diff line number Diff line change @@ -882,10 +882,10 @@ def test_commit_msg_hook_success(self, rw_repo):
882
882
_make_hook (
883
883
index .repo .git_dir ,
884
884
'commit-msg' ,
885
- 'echo -n " {0 }" >> "$1"' .format (from_hook_message )
885
+ 'echo -n " {}" >> "$1"' .format (from_hook_message )
886
886
)
887
887
new_commit = index .commit (commit_message )
888
- self .assertEqual (new_commit .message , u"{0 } {1 }" .format (commit_message , from_hook_message ))
888
+ self .assertEqual (new_commit .message , u"{} {}" .format (commit_message , from_hook_message ))
889
889
890
890
@with_rw_repo ('HEAD' , bare = True )
891
891
def test_commit_msg_hook_fail (self , rw_repo ):
You can’t perform that action at this time.
0 commit comments