Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Win32: fix checkout problem with directories exceeding MAX_PATH #212

Merged
merged 6 commits into from
Jul 23, 2014

Commits on Jul 14, 2014

  1. symlinks: remove PATH_MAX limitation

    'git checkout' fails if a directory is longer than PATH_MAX, because the
    lstat_cache in symlinks.c checks if the leading directory exists using
    PATH_MAX-bounded string operations.
    
    Remove the limitation by using strbuf instead.
    
    Signed-off-by: Karsten Blees <blees@dcon.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    kblees committed Jul 14, 2014
    Configuration menu
    Copy the full SHA
    63e396d View commit details
    Browse the repository at this point in the history
  2. cache.h: rename cache_def_free to cache_def_clear

    Rename cache_def_free to cache_def_clear as it doesn't free the struct
    cache_def, but just clears its content.
    
    Signed-off-by: Karsten Blees <blees@dcon.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    kblees committed Jul 14, 2014
    Configuration menu
    Copy the full SHA
    01754bf View commit details
    Browse the repository at this point in the history
  3. dir.c: coding style fix

    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Karsten Blees <blees@dcon.de>
    pclouds authored and kblees committed Jul 14, 2014
    Configuration menu
    Copy the full SHA
    161276f View commit details
    Browse the repository at this point in the history
  4. dir.h: move struct exclude declaration to top level

    There is no actual nested struct here. Move it out for clarity.
    
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Karsten Blees <blees@dcon.de>
    pclouds authored and kblees committed Jul 14, 2014
    Configuration menu
    Copy the full SHA
    4ccaf1a View commit details
    Browse the repository at this point in the history
  5. prep_exclude: remove the artificial PATH_MAX limit

    This also fixes the problem of silently ignoring .gitignore if the
    full path exceeds PATH_MAX. Now add_excludes_from_file() will report
    if it gets ENAMETOOLONG.
    
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Karsten Blees <blees@dcon.de>
    pclouds authored and kblees committed Jul 14, 2014
    Configuration menu
    Copy the full SHA
    ca82b15 View commit details
    Browse the repository at this point in the history
  6. Win32: fix 'lstat("dir/")' with long paths

    Use a suffciently large buffer to strip the trailing slash.
    
    Signed-off-by: Karsten Blees <blees@dcon.de>
    kblees committed Jul 14, 2014
    Configuration menu
    Copy the full SHA
    bb4df80 View commit details
    Browse the repository at this point in the history