History

thanks clippy

Sebastian Thiel committed 4 years ago

Commit b5217481 parent d79a7a61 file · +4 −6Browse files

Unified · Split

git-repository/src/remote/connection/fetch/update_refs/mod.rs+4−6
@@ -74,13 +74,11 @@ pub(crate) fn update( · 73 unmodified lines
7474 (update::Mode::NoChangeNeeded, "TBD no change")
7575 } else if refspecs[*spec_index].allow_non_fast_forward() {
7676 (update::Mode::Forced, "TBD force")
77+ } else if let Some(git_ref::Category::Tag) = existing.name().category() {
78+ updates.push(update::Mode::RejectedTagUpdate.into());
79+ continue;
7780 } else {
78− if let Some(git_ref::Category::Tag) = existing.name().category() {
79− updates.push(update::Mode::RejectedTagUpdate.into());
80− continue;
81− } else {
82− todo!("check for fast-forward (is local an ancestor of remote?)")
83− }
81+ todo!("check for fast-forward (is local an ancestor of remote?)")
8482 };
8583 (mode, reflog_message, existing.name().to_owned())
8684 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t