summaryrefslogtreecommitdiff
path: root/Upgrade/V2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Upgrade/V2.hs')
-rw-r--r--Upgrade/V2.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Upgrade/V2.hs b/Upgrade/V2.hs
index 08bf83e83..3440d504b 100644
--- a/Upgrade/V2.hs
+++ b/Upgrade/V2.hs
@@ -9,6 +9,7 @@ module Upgrade.V2 where
import Common.Annex
import qualified Git
+import qualified Git.Ref
import qualified Annex.Branch
import Logs.Location
import Annex.Content
@@ -86,7 +87,7 @@ logFiles dir = return . filter (".log" `isSuffixOf`)
push :: Annex ()
push = do
- origin_master <- Annex.Branch.refExists $ Git.Ref "origin/master"
+ origin_master <- inRepo $ Git.Ref.exists $ Git.Ref "origin/master"
origin_gitannex <- Annex.Branch.hasOrigin
case (origin_master, origin_gitannex) of
(_, True) -> do