Update the date reference around Git submodule bug (#1430)

This commit is contained in:
Tshepang Mbambo 2022-08-17 10:07:40 +02:00 committed by GitHub
parent d3daa1f28e
commit 04e1702ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -157,9 +157,12 @@ no changes added to commit (use "git add" and/or "git commit -a")
These changes are not changes to files: they are changes to submodules (more on These changes are not changes to files: they are changes to submodules (more on
this [later](#git-submodules)). To get rid of those, run `git submodule update` this [later](#git-submodules)). To get rid of those, run `git submodule update`
(or run any `x.py` command, which will automatically update the submodules). (or run any `x.py` command, which will automatically update the submodules).
Note that there is (as of <!-- date-check --> February 2022) a [bug][#77620] if you use Note that,
worktrees, submodules, and `x.py` in a commit hook. If you run into an error as of <!-- date-check --> Aug 2022,
like: there is a [bug][#77620] if you use worktrees,
submodules, and `x.py` in a commit hook.
If you run into an error like the following,
it's not anything you did wrong:
``` ```
error: failed to read `/home/joshua/rustc-worktree/src/tools/miri/cargo-miri/Cargo.toml` error: failed to read `/home/joshua/rustc-worktree/src/tools/miri/cargo-miri/Cargo.toml`
@ -167,7 +170,8 @@ error: failed to read `/home/joshua/rustc-worktree/src/tools/miri/cargo-miri/Car
Caused by: Caused by:
No such file or directory (os error 2) No such file or directory (os error 2)
``` ```
it's not anything you did wrong. There is a workaround in [the issue][#77620-workaround].
There is a workaround in [the issue][#77620-workaround].
[#77620]: https://github.com/rust-lang/rust/issues/77620 [#77620]: https://github.com/rust-lang/rust/issues/77620
[#77620-workaround]: https://github.com/rust-lang/rust/issues/77620#issuecomment-705228229 [#77620-workaround]: https://github.com/rust-lang/rust/issues/77620#issuecomment-705228229