Skip to content
Snippets Groups Projects
Commit 70f5d3be authored by Matt Mackall's avatar Matt Mackall
Browse files

subrepo: audit subrepo paths

parent 23e941d7
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,7 @@
localrepo = l
hg = h
util.path_auditor(ctx._repo.root)(path)
state = ctx.substate.get(path, nullstate)
if state[0].startswith('['): # future expansion
raise error.Abort('unknown subrepo source %s' % state[0])
......
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