diff options
author | Alex Vandiver <alexmv@dropbox.com> | 2017-10-27 16:26:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-30 11:45:51 +0900 |
commit | 11cf33bec62512f2c3f0bdcfdaa41e31e9b0c3e8 (patch) | |
tree | cdac40433e00089d77b763dec26033b82348d0cb /abspath.c | |
parent | fsmonitor: preserve utf8 filenames in fsmonitor-watchman log (diff) | |
download | tgif-11cf33bec62512f2c3f0bdcfdaa41e31e9b0c3e8.tar.xz |
fsmonitor: set the PWD to the top of the working tree
The fsmonitor command inherits the PWD of its caller, which may be
anywhere in the working copy. This makes is difficult for the
fsmonitor command to operate on the whole repository. Specifically,
for the watchman integration, this causes each subdirectory to get its
own watch entry.
Set the CWD to the top of the working directory, for consistency.
Signed-off-by: Alex Vandiver <alexmv@dropbox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'abspath.c')
0 files changed, 0 insertions, 0 deletions