Show More
@@ -265,10 +265,9 b' def _setupdirstate(ui):' | |||
|
265 | 265 | repo = self.repo |
|
266 | 266 | sparsematch = sparse.matcher(repo) |
|
267 | 267 | if not sparsematch.always(): |
|
268 | dirstate = repo.dirstate | |
|
269 | 268 | for f in args: |
|
270 | 269 | if (f is not None and not sparsematch(f) and |
|
271 |
f not in |
|
|
270 | f not in self): | |
|
272 | 271 | raise error.Abort(_("cannot add '%s' - it is outside " |
|
273 | 272 | "the sparse checkout") % f, |
|
274 | 273 | hint=hint) |
General Comments 0
You need to be logged in to leave comments.
Login now