use NonEmpty for dirHashes
This avoids 4 uses of head.
This commit is contained in:
parent
43f31121a5
commit
10216b44d2
8 changed files with 34 additions and 22 deletions
|
@ -307,7 +307,7 @@ bup2GitRemote r
|
|||
| otherwise = Git.Construct.fromUrl $ "ssh://" ++ host ++ slash dir
|
||||
where
|
||||
bits = splitc ':' r
|
||||
host = Prelude.head bits
|
||||
host = fromMaybe "" $ headMaybe bits
|
||||
dir = intercalate ":" $ drop 1 bits
|
||||
-- "host:~user/dir" is not supported specially by bup;
|
||||
-- "host:dir" is relative to the home directory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue