File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ pub fn update_head(
56
56
git_protocol:: fetch:: Ref :: Direct { full_ref_name, object } if full_ref_name == "HEAD" => {
57
57
( Some ( object) , None )
58
58
}
59
- git_protocol:: fetch:: Ref :: Unborn { target } => ( None , Some ( target) ) ,
59
+ git_protocol:: fetch:: Ref :: Unborn { full_ref_name, target } if full_ref_name == "HEAD" => {
60
+ ( None , Some ( target) )
61
+ }
60
62
_ => return None ,
61
63
} )
62
64
} ) {
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ impl Source {
54
54
match self {
55
55
Source :: ObjectId ( _) => None ,
56
56
Source :: Ref ( r) => match r {
57
- git_protocol:: fetch:: Ref :: Unborn { target : _ } => Some ( "HEAD" . into ( ) ) ,
58
- git_protocol:: fetch:: Ref :: Symbolic { full_ref_name, .. }
57
+ git_protocol:: fetch:: Ref :: Unborn { full_ref_name , .. }
58
+ | git_protocol:: fetch:: Ref :: Symbolic { full_ref_name, .. }
59
59
| git_protocol:: fetch:: Ref :: Direct { full_ref_name, .. }
60
60
| git_protocol:: fetch:: Ref :: Peeled { full_ref_name, .. } => Some ( full_ref_name. as_ref ( ) ) ,
61
61
} ,
You can’t perform that action at this time.
0 commit comments