File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ def format(self):
4848        """:return: a string suitable to be placed in a reflog file""" 
4949        act  =  self .actor 
5050        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 )
5858
5959    @property  
6060    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):
882882        _make_hook (
883883            index .repo .git_dir ,
884884            'commit-msg' ,
885-             'echo -n " {0 }" >> "$1"' .format (from_hook_message )
885+             'echo -n " {}" >> "$1"' .format (from_hook_message )
886886        )
887887        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 ))
889889
890890    @with_rw_repo ('HEAD' , bare = True ) 
891891    def  test_commit_msg_hook_fail (self , rw_repo ):
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments