Ticket #2671: gitplugin-nosuchnode.diff

File gitplugin-nosuchnode.diff, 416 bytes (added by thatch, 10 months ago)

Patch to correctly raise NoSuchNode? when paths are missing

  • git_fs.py

    old new  
    170170                        if tree_ls_info != None: 
    171171                                (self.perm,k,self.sha,fn) = tree_ls_info 
    172172                        else: 
    173                                 k = 'blob' 
     173                                raise NoSuchNode(path, rev) 
    174174 
    175175                        rev=self.git.last_change(rev, p) 
    176176