diff options
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/ngit/sub_commands/sync.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/ngit/sub_commands/sync.rs b/src/bin/ngit/sub_commands/sync.rs index e7033b2..00dfe75 100644 --- a/src/bin/ngit/sub_commands/sync.rs +++ b/src/bin/ngit/sub_commands/sync.rs | |||
| @@ -141,8 +141,8 @@ pub async fn launch(args: &SubCommandArgs) -> Result<()> { | |||
| 141 | "error pushing updates to {remote_name}: error: {error}" | 141 | "error pushing updates to {remote_name}: error: {error}" |
| 142 | ))?; | 142 | ))?; |
| 143 | } | 143 | } |
| 144 | Ok(failed_refs) => { | 144 | Ok(updated_refs) => { |
| 145 | if failed_refs.is_empty() { | 145 | if updated_refs.values().all(std::option::Option::is_none) { |
| 146 | if *is_grasp_server || args.force { | 146 | if *is_grasp_server || args.force { |
| 147 | term.write_line(&format!("{remote_name} sync completed"))?; | 147 | term.write_line(&format!("{remote_name} sync completed"))?; |
| 148 | // TODO we only know if there was an error but not | 148 | // TODO we only know if there was an error but not |