We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
git add
1 parent 625e983 commit 9806699Copy full SHA for 9806699
src/sync.rs
@@ -99,16 +99,18 @@ impl GitSync {
99
This updates the rust-version file to {upstream_sha}."#,
100
);
101
102
- let config_path = self
+ let rust_version_path = self
103
.context
104
.last_upstream_sha_path
105
.to_string_lossy()
106
.to_string();
107
- run_command(&["git", "add", &config_path])?;
+ // Add the file to git index, in case this is the first time we perform the sync
108
+ // Otherwise `git commit <file>` below wouldn't work.
109
+ run_command(&["git", "add", &rust_version_path])?;
110
run_command(&[
111
"git",
112
"commit",
- &config_path,
113
+ &rust_version_path,
114
"--no-verify",
115
"-m",
116
&prep_message,
0 commit comments