diff options
author | 2014-02-08 15:31:03 -0400 | |
---|---|---|
committer | 2014-02-08 15:39:04 -0400 | |
commit | b1915b9054ffa57e84c1300ac0d0d9bc1c7af20d (patch) | |
tree | c4b7771e493a5c8997e04dcf93868e6d5b94fe89 /doc/bugs | |
parent | 97f152eff1d9b1c7543844dacda8c264aadede9f (diff) |
Windows: Fix handling of absolute unix-style git repository paths.
Note that on Windows a remote with a path like /home/foo/bar
is interpreted by git as being some screwy relative path (relative to what
exactly seems ill-defined -- it seemed relative to C:\Program Files\Git\ in
my tests!) So no attempt has been made to handle such a path sanely, just not
to crash when encountering it.
Note that "C:\\foo" </> "/home/foo/bar" yields /home/foo/bar even though
that is not absolute! I don't know what to make of all this,
except that I will be very happy when this crock of **** vanishes from
the face of the earth.
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/assistant_on_windows_adding_remote_containing_linux_paths.mdwn | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/bugs/assistant_on_windows_adding_remote_containing_linux_paths.mdwn b/doc/bugs/assistant_on_windows_adding_remote_containing_linux_paths.mdwn index cdaabf78e..c6b6ee482 100644 --- a/doc/bugs/assistant_on_windows_adding_remote_containing_linux_paths.mdwn +++ b/doc/bugs/assistant_on_windows_adding_remote_containing_linux_paths.mdwn @@ -6,9 +6,18 @@ internal error, /home/michele/assistannex is not absolute ### What steps will reproduce the problem? -create a transfer repository on a usb drive (from windows) merge it with a repository on linux, try to merge it on another target windows machine +create a transfer repository on a usb drive (from windows) merge it with a +repository on linux, try to merge it on another target windows machine ### What version of git-annex are you using? On what operating system? git-annex version 5.20140128-g29aea74 +> I'm not able to follow the steps to reproduce this, but I think +> I see what the problem is. `isAbsolute` on windows does not think that +> unix-style path is absolute. Such a path can appear in a remote of a git +> repository, particularly if part of that repository was set up on a +> non-Windows system. While the remote won't be usable on Windows with a +> path like that, git-annex should not choke on the path either. +> I have fixed the code to deal with this. +> [[done]] --[[Joey]] |