From 541339720451b0a05dc7ebe83e17bafb89863c6f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 1 Mar 2021 21:38:08 -0500 Subject: manifest: relax include name rules for user-specified path Allow the user to specify relative or absolute or any other funky path that they want when using `repo init` or `repo sync`. Our goal is to restrict the paths in the remote manifest git repo we cloned from the network, not protect the user from themselves. Bug: https://crbug.com/gerrit/14156 Change-Id: I1ccfb2a6bd1dce2bd765e261bef0bbf0f8a9beb6 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/298823 Reviewed-by: Jonathan Nieder Tested-by: Mike Frysinger --- error.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'error.py') diff --git a/error.py b/error.py index 2fb6aa0f..25ff80d1 100644 --- a/error.py +++ b/error.py @@ -22,12 +22,12 @@ class ManifestParseError(Exception): """ -class ManifestInvalidRevisionError(Exception): +class ManifestInvalidRevisionError(ManifestParseError): """The revision value in a project is incorrect. """ -class ManifestInvalidPathError(Exception): +class ManifestInvalidPathError(ManifestParseError): """A path used in or is incorrect. """ -- cgit v1.2.3-54-g00ecf