diff --git a/src/branches.cpp b/src/branches.cpp index db8ff380..6de83156 100644 --- a/src/branches.cpp +++ b/src/branches.cpp @@ -457,7 +457,8 @@ Branches::find_and_set_mode_ro() *new_impl = *impl; - for(auto &branch : *impl) + bool changed = false; + for(auto &branch : *new_impl) { if(branch.mode != Branch::Mode::RW) continue;