Revision 5c20398699165a91af2d81ea2d20385bc8dd3627 authored by Emily Shaffer on 03 March 2020, 04:05:06 UTC, committed by Junio C Hamano on 15 March 2020, 16:35:46 UTC
If there is no worktree at present, we can still hint the user about Git's current directory by showing them the absolute path to the Git directory. Even though the Git directory doesn't make it as easy to locate the worktree in question, it can still help a user figure out what's going on while developing a script. This fixes a segmentation fault introduced in e0020b2f ("prefix_path: show gitdir when arg is outside repo", 2020-02-14). Signed-off-by: Emily Shaffer <emilyshaffer@google.com> [jc: added minimum tests, with help from Szeder Gábor] Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e0020b2
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...