summaryrefslogtreecommitdiff
path: root/Assistant/MakeRemote.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant/MakeRemote.hs')
-rw-r--r--Assistant/MakeRemote.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Assistant/MakeRemote.hs b/Assistant/MakeRemote.hs
index cce2da0af..eec383272 100644
--- a/Assistant/MakeRemote.hs
+++ b/Assistant/MakeRemote.hs
@@ -90,10 +90,10 @@ makeGitRemote basename location = makeRemote basename location $ \name ->
- Returns the name of the remote. -}
makeRemote :: String -> String -> (String -> Annex ()) -> Annex String
makeRemote basename location a = do
- r <- fromRepo id
- if not (any samelocation $ Git.remotes r)
+ g <- gitRepo
+ if not (any samelocation $ Git.remotes g)
then do
- let name = uniqueRemoteName basename 0 r
+ let name = uniqueRemoteName basename 0 g
a name
return name
else return basename