Skip to content
  • Torsten Bögershausen's avatar
    cygwin: allow pushing to UNC paths · 496f2569
    Torsten Bögershausen authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
     cygwin can use an UNC path like //server/share/repo
    
     $ cd //server/share/dir
     $ mkdir test
     $ cd test
     $ git init --bare
    
     However, when we try to push from a local Git repository to this repo,
     there is a problem: Git converts the leading "//" into a single "/".
    
     As cygwin handles an UNC path so well, Git can support them better:
    
     - Introduce cygwin_offset_1st_component() which keeps the leading "//",
       similar to what Git for Windows does.
    
     - Move CYGWIN out of the POSIX in the tests for path normalization in t0060
    
    Signed-off-by: default avatarTorsten Bögershausen <tboegi@web.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    496f2569