diff options
author | Pat Thoyts <patthoyts@users.sourceforge.net> | 2010-10-20 14:29:56 +0100 |
---|---|---|
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | 2010-10-20 14:29:56 +0100 |
commit | 38ec8d3e265220fb091b8c5ad6233b502242f866 (patch) | |
tree | d1573048e28d3bfc76cd209be7e19f469b338037 /git-gui/lib/diff.tcl | |
parent | 4c56d1ddc03e6370a3afc01a011e6c3e65ff65d3 (diff) | |
download | git-38ec8d3e265220fb091b8c5ad6233b502242f866.tar.gz git-38ec8d3e265220fb091b8c5ad6233b502242f866.tar.xz |
git-gui: correct assignment of work-tree
git-gui currently uses its own logic to determine the work-tree setting
but 'git rev-parse --toplevel' directly returns git's work-tree value
by calling get_git_work_tree() and is therefore always correct.
This fixes an inability to handle some repository configurations. In
particular where .git is a file containing a path to the real directory
(a cross-platform symbolic link).
To continue to support older versions than 1.7.0, setting the work-tree
by normalizing the --show-cdup value is more reliable as git-dir might be
outside the work-tree entirely.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Diffstat (limited to 'git-gui/lib/diff.tcl')
0 files changed, 0 insertions, 0 deletions