We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47c7fb3 commit 532ff2bCopy full SHA for 532ff2b
gitoxide-core/src/organize.rs
@@ -155,12 +155,14 @@ fn handle(
155
)
156
.join(to_relative(git_url::expand_path(None, url.path.as_bstr())?));
157
158
- if git_workdir.canonicalize()? == destination.canonicalize()? {
159
- progress.info(format!(
160
- "Skipping {:?} as it is in the correct spot",
161
- git_workdir.display()
162
- ));
163
- return Ok(());
+ if let Ok(destination) = destination.canonicalize() {
+ if git_workdir.canonicalize()? == destination {
+ progress.info(format!(
+ "Skipping {:?} as it is in the correct spot",
+ git_workdir.display()
+ ));
164
+ return Ok(());
165
+ }
166
}
167
match mode {
168
Mode::Simulate => progress.info(format!(
0 commit comments