summaryrefslogtreecommitdiffstats
path: root/error.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-03-01 21:38:08 -0500
committerMike Frysinger <vapier@google.com>2021-03-02 03:18:57 +0000
commit541339720451b0a05dc7ebe83e17bafb89863c6f (patch)
tree769d23948beab6523127880f013fc806de8eef87 /error.py
parent13cb7f799dc61093ed69726093a5af8bf48c65d1 (diff)
downloadgit-repo-541339720451b0a05dc7ebe83e17bafb89863c6f.tar.gz
manifest: relax include name rules for user-specified pathv2.13.1
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 <jrn@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'error.py')
-rw-r--r--error.py4
1 files changed, 2 insertions, 2 deletions
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):
22 """ 22 """
23 23
24 24
25class ManifestInvalidRevisionError(Exception): 25class ManifestInvalidRevisionError(ManifestParseError):
26 """The revision value in a project is incorrect. 26 """The revision value in a project is incorrect.
27 """ 27 """
28 28
29 29
30class ManifestInvalidPathError(Exception): 30class ManifestInvalidPathError(ManifestParseError):
31 """A path used in <copyfile> or <linkfile> is incorrect. 31 """A path used in <copyfile> or <linkfile> is incorrect.
32 """ 32 """
33 33