Skip to content

Commit d254a6a

Browse files
committed
Fix not updating Git source branches after force pushes
1 parent 63f5cfd commit d254a6a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# 📝 Release notes
22

3+
## 0.6.7
4+
5+
*Unreleased*
6+
7+
- [Fix not updating Git source branches after force pushes.](#placeholder)
8+
Previously repositories that had a branch that was force pushed to wouldn't
9+
be updated by `sheldon lock --update`.
10+
311
## 0.6.6
412

513
*January 29th, 2022*
614

7-
- [Support and bundle shell completions][#129]
15+
- [Support and bundle shell completions.][#129]
816

917
[#129]: https://github.com/rossmacarthur/sheldon/issues/129
1018

src/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ pub mod git {
242242

243243
static DEFAULT_REFSPECS: Lazy<Vec<String>> = Lazy::new(|| {
244244
vec_into![
245-
"refs/heads/*:refs/remotes/origin/*",
246-
"HEAD:refs/remotes/origin/HEAD"
245+
"+refs/heads/*:refs/remotes/origin/*",
246+
"+HEAD:refs/remotes/origin/HEAD"
247247
]
248248
});
249249

0 commit comments

Comments
 (0)