You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository is linked to `rust-lang/rust` as a [josh](https://josh-project.github.io/josh/intro.html) subtree. You can use the following commands to synchronize the subtree in both directions.
1) Run the push command to create a branch named `<branch-name>` in a `rustc` fork under the `<gh-username>` account
52
+
```
53
+
cargo run --manifest-path josh-sync/Cargo.toml rustc-push <branch-name> <gh-username>
54
+
```
55
+
2) Create a PR from `<branch-name>` into `rust-lang/rust`
56
+
57
+
#### Minimal git config
58
+
59
+
For simplicity (ease of implementation purposes), the josh-sync script simply calls out to system git. This means that the git invocation may be influenced by global (or local) git configuration.
60
+
61
+
You may observe "Nothing to pull" even if you *know* rustc-pull has something to pull if your global git config sets `fetch.prunetags = true` (and possibly other configurations may cause unexpected outcomes).
62
+
63
+
To minimize the likelihood of this happening, you may wish to keep a separate *minimal* git config that *only* has `[user]` entries from global git config, then repoint system git to use the minimal git config instead. E.g.
64
+
65
+
```
66
+
GIT_CONFIG_GLOBAL=/path/to/minimal/gitconfig GIT_CONFIG_SYSTEM='' cargo run --manifest-path josh-sync/Cargo.toml -- rustc-pull
0 commit comments