diff options
| author | Mike Frysinger <vapier@google.com> | 2021-03-01 21:38:08 -0500 |
|---|---|---|
| committer | Mike Frysinger <vapier@google.com> | 2021-03-02 03:18:57 +0000 |
| commit | 541339720451b0a05dc7ebe83e17bafb89863c6f (patch) | |
| tree | 769d23948beab6523127880f013fc806de8eef87 /error.py | |
| parent | 13cb7f799dc61093ed69726093a5af8bf48c65d1 (diff) | |
| download | git-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.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -22,12 +22,12 @@ class ManifestParseError(Exception): | |||
| 22 | """ | 22 | """ |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | class ManifestInvalidRevisionError(Exception): | 25 | class 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 | ||
| 30 | class ManifestInvalidPathError(Exception): | 30 | class 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 | ||
