summaryrefslogtreecommitdiff
path: root/Remotes.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-01-26 16:20:28 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-01-26 16:20:28 -0400
commit7f6af79232eee685daf58e72737c5284f80cf482 (patch)
treee3ec0e7612845e056df355c6841ee9a58e603d52 /Remotes.hs
parent7b2da21ab7bc51785203a69cc05ab811a8629ecb (diff)
trust setting improvements
Diffstat (limited to 'Remotes.hs')
-rw-r--r--Remotes.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Remotes.hs b/Remotes.hs
index e8a78a59e..fe5b7f767 100644
--- a/Remotes.hs
+++ b/Remotes.hs
@@ -222,6 +222,7 @@ same a b = Git.repoRemoteName a == Git.repoRemoteName b
{- Looks up a remote by name. -}
byName :: String -> Annex Git.Repo
+byName "." = Annex.gitRepo -- special case to refer to current repository
byName name = do
when (null name) $ error "no remote specified"
g <- Annex.gitRepo