Commit 98b4a6e
committed
Fixed normalized paths bug that prevented copying class in IDE. Issue 8497.
If both repo and project paths were symlinks or network drive paths,
copying with refactoring caused exceptions to be thrown. Other actions
may have resulted in the same.
A normalized file path canNOT be passed into getIgnores because getIgnores
creates and executes a StatusCommand. Executing the StatusCommand passes
the repository and the source file. StatusCommand gets the repository path
by calling repository.getWorkTree(), which returns a non-normalized path.
If both the repository and the source file are referenced via a symlink or
network drive, referencing file paths via normalizing and non-normaling
causes file path mismatches.
The normalized file path points to another location on the system, but
repository.getWorkTree() will provide a non-normalized file path.
Signed-off-by: Hunter Schoonover <hunter@skoonie.com>1 parent 5780a4c commit 98b4a6e
File tree
1 file changed
+10
-4
lines changed- ide/libs.git/src/org/netbeans/libs/git/jgit/commands
1 file changed
+10
-4
lines changedLines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
84 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
88 | | - | |
89 | | - | |
| 94 | + | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
0 commit comments