Commit 9ec26e7
difftool: fix argument handling in subdirs
When in a subdirectory of a repository, path arguments should be
interpreted relative to the current directory not the root of the
working tree.
The Git::repository object passed into setup_dir_diff() is configured to
handle this correctly but we create a new Git::repository here without
setting the WorkingSubdir argument. By simply using the existing
repository, path arguments are handled relative to the current
directory.
Reported-by: Bernhard Kirchen <[email protected]>
Signed-off-by: John Keeping <[email protected]>
Acked-by: David Aguilar <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 05219a1 commit 9ec26e7
1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 118 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | 119 | | |
127 | | - | |
| 120 | + | |
128 | 121 | | |
129 | 122 | | |
130 | 123 | | |
| |||
176 | 169 | | |
177 | 170 | | |
178 | 171 | | |
179 | | - | |
| 172 | + | |
180 | 173 | | |
181 | 174 | | |
182 | 175 | | |
183 | 176 | | |
184 | | - | |
| 177 | + | |
185 | 178 | | |
186 | 179 | | |
187 | 180 | | |
| |||
0 commit comments