diff options
Diffstat (limited to 'src/lib/list.rs')
| -rw-r--r-- | src/lib/list.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/list.rs b/src/lib/list.rs index b4d6a5e..08b197c 100644 --- a/src/lib/list.rs +++ b/src/lib/list.rs | |||
| @@ -237,7 +237,7 @@ pub fn identify_remote_sync_issues( | |||
| 237 | 237 | ||
| 238 | for (name, value) in &nostr_state.state { | 238 | for (name, value) in &nostr_state.state { |
| 239 | for (url, (remote_state, _is_grasp_server)) in remote_states { | 239 | for (url, (remote_state, _is_grasp_server)) in remote_states { |
| 240 | let remote_name = get_short_git_server_name(git_repo, url); | 240 | let remote_name = get_short_git_server_name(url); |
| 241 | let issues = remote_issues.entry(remote_name.clone()).or_default(); | 241 | let issues = remote_issues.entry(remote_name.clone()).or_default(); |
| 242 | 242 | ||
| 243 | let is_branch = name.starts_with("refs/heads/"); | 243 | let is_branch = name.starts_with("refs/heads/"); |
| @@ -416,7 +416,6 @@ pub fn format_ref_issue_simple( | |||
| 416 | 416 | ||
| 417 | /// Generate warning messages for remote sync issues | 417 | /// Generate warning messages for remote sync issues |
| 418 | pub fn generate_remote_sync_warnings( | 418 | pub fn generate_remote_sync_warnings( |
| 419 | git_repo: &Repo, | ||
| 420 | remote_issues: &HashMap<String, RemoteIssues>, | 419 | remote_issues: &HashMap<String, RemoteIssues>, |
| 421 | remote_states: &HashMap<String, (HashMap<String, String>, bool)>, | 420 | remote_states: &HashMap<String, (HashMap<String, String>, bool)>, |
| 422 | ) -> Vec<String> { | 421 | ) -> Vec<String> { |
| @@ -430,7 +429,7 @@ pub fn generate_remote_sync_warnings( | |||
| 430 | // Find remote state for this remote | 429 | // Find remote state for this remote |
| 431 | let remote_state = remote_states | 430 | let remote_state = remote_states |
| 432 | .iter() | 431 | .iter() |
| 433 | .find(|(url, _)| &get_short_git_server_name(git_repo, url) == remote_name) | 432 | .find(|(url, _)| &get_short_git_server_name(url) == remote_name) |
| 434 | .map(|(_, (state, _))| state); | 433 | .map(|(_, (state, _))| state); |
| 435 | 434 | ||
| 436 | if let Some(state) = remote_state { | 435 | if let Some(state) = remote_state { |