"here" can be used to refer to the current repository, which can read better than the old "." (which still works too).

This commit is contained in:
Joey Hess 2012-03-01 22:35:10 -04:00
parent 478fdc8a5d
commit 1098bc37ab
4 changed files with 13 additions and 4 deletions

View file

@ -90,6 +90,7 @@ byName' n = do
- .git/config. -}
nameToUUID :: String -> Annex UUID
nameToUUID "." = getUUID -- special case for current repo
nameToUUID "here" = getUUID
nameToUUID "" = error "no remote specified"
nameToUUID n = byName' n >>= go
where