diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-08-30 10:23:28 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-08-30 10:23:28 +0100 |
| commit | b4459e98d816f6f278a4e9ab76883008d0b946fe (patch) | |
| tree | 53430b697d028e523cf024397cd1371115c6ad4a /src/git_remote_helper.rs | |
| parent | 9d3882d2d84a3a3b48f442d1abd846839eeb0c40 (diff) | |
fix(remote): push pr shoudln't connect to server
as reported by arjen and tracked via:
nostr:nevent1qvzqqqqx25pzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqy2hwumn8ghj7ur4wfcxcetjv4kxz7fwvdhk6qpqur335cpnlktwkhv43d8sdk24dpu79jnfuk9qyvk7kga6aencm77sj7e8fa
as our tests are connecting to clone url in the file system its difficult to write a test for this
Diffstat (limited to 'src/git_remote_helper.rs')
| -rw-r--r-- | src/git_remote_helper.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/git_remote_helper.rs b/src/git_remote_helper.rs index c624857..e2de494 100644 --- a/src/git_remote_helper.rs +++ b/src/git_remote_helper.rs | |||
| @@ -1063,7 +1063,9 @@ fn create_rejected_refspecs_and_remotes_refspecs( | |||
| 1063 | refspecs_for_remote.push(refspec.clone()); | 1063 | refspecs_for_remote.push(refspec.clone()); |
| 1064 | } | 1064 | } |
| 1065 | } | 1065 | } |
| 1066 | refspecs_for_remotes.insert(url.to_string(), refspecs_for_remote); | 1066 | if !refspecs_for_remote.is_empty() { |
| 1067 | refspecs_for_remotes.insert(url.to_string(), refspecs_for_remote); | ||
| 1068 | } | ||
| 1067 | } | 1069 | } |
| 1068 | 1070 | ||
| 1069 | // remove rejected refspecs so they dont get pushed to some remotes | 1071 | // remove rejected refspecs so they dont get pushed to some remotes |