Skip to content
  • Linus Torvalds's avatar
    Fix filename verification when in a subdirectory · e23d0b4a
    Linus Torvalds authored
    
    
    When we are in a subdirectory of a git archive, we need to take the prefix
    of that subdirectory into accoung when we verify filename arguments.
    
    Noted by Matthias Lederhofer
    
    This also uses the improved error reporting for all the other git commands
    that use the revision parsing interfaces, not just git-rev-parse. Also, it
    makes the error reporting for mixed filenames and argument flags clearer
    (you cannot put flags after the start of the pathname list).
    
    [jc: with fix to a trivial typo noticed by Timo Hirvonen]
    
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    e23d0b4a