Skip to content
  • David Reiss's avatar
    Add support for GIT_CEILING_DIRECTORIES · 0454dd93
    David Reiss authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Make git recognize a new environment variable that prevents it from
    chdir'ing up into specified directories when looking for a GIT_DIR.
    Useful for avoiding slow network directories.
    
    For example, I use git in an environment where homedirs are automounted
    and "ls /home/nonexistent" takes about 9 seconds.  Setting
    GIT_CEILING_DIRS="/home" allows "git help -a" (for bash completion) and
    "git symbolic-ref" (for my shell prompt) to run in a reasonable time.
    
    Signed-off-by: default avatarDavid Reiss <dreiss@facebook.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    0454dd93