Skip to content
Snippets Groups Projects
Commit 65c961d0 authored by Chris Wanstrath's avatar Chris Wanstrath
Browse files

don't need to fake out hg with `capabilities` anymore

parent 05a96f77
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,7 @@
from git_handler import GitHandler
class gitrepo(repo.repository):
capabilities = []
def __init__(self, ui, path, create=1):
def __init__(self, ui, path, create=True):
dest = hg.defaultdest(path)
if dest.endswith('.git'):
......@@ -22,6 +20,7 @@
node = git.remote_head('origin')
hg.update(dest_repo, node)
# exit to stop normal `hg clone` flow
raise SystemExit
instance = gitrepo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment