Skip to content
  • Pete Wyckoff's avatar
    git p4 test: use test_chmod for cygwin · 4cea4d66
    Pete Wyckoff authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    This test does a commit that is a pure mode change, submits
    it to p4 but causes the submit to fail.  It verifies that
    the state in p4 as well as the client directory are both
    unmodified after the failed submit.
    
    On cygwin, "chmod +x" does nothing, so use the test_chmod
    function to modify the index directly too.
    
    Also on cygwin, the executable bit cannot be seen in the
    filesystem, so avoid that part of the test.  The checks of
    p4 state are still valid, though.
    
    Thanks-to: Johannes Sixt <j6t@kdbg.org>
    Signed-off-by: default avatarPete Wyckoff <pw@padd.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    4cea4d66