Merge branch 'jk/relative-directory-fix'
authorJunio C Hamano <gitster@pobox.com>
Wed, 25 Apr 2018 04:28:52 +0000 (13:28 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Apr 2018 04:28:52 +0000 (13:28 +0900)
commitff6eb825f0aa1f45230c10fbb0cf8d484c927c55
treee64f3f038b0f888c0ddc0a5c97e0d266068b82a4
parent5d8da91e707668227464c9ba0e74b5fea1ee3b7e
parentfb9c2d27039a23457cb9710d86e00c51dfb910dc
Merge branch 'jk/relative-directory-fix'

Some codepaths, including the refs API, get and keep relative
paths, that go out of sync when the process does chdir(2).  The
chdir-notify API is introduced to let these codepaths adjust these
cached paths to the new current directory.

* jk/relative-directory-fix:
  refs: use chdir_notify to update cached relative paths
  set_work_tree: use chdir_notify
  add chdir-notify API
  trace.c: export trace_setup_key
  set_git_dir: die when setenv() fails
Makefile
cache.h
environment.c
setup.c
t/t1501-work-tree.sh