File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -756,6 +756,7 @@ impl Tree {
756
756
for project in & projects {
757
757
let lfs_projects = & lfs_projects;
758
758
let project_path = tree_root. join ( & project. project_path ) ;
759
+ let manifest_branch = self . config . branch . clone ( ) ;
759
760
760
761
job. add_task ( & project. project_path , move || {
761
762
let remote = config
@@ -846,6 +847,10 @@ impl Tree {
846
847
. reset ( new_head. as_object ( ) , git2:: ResetType :: Soft , None )
847
848
. with_context ( || format ! ( "failed to move HEAD to {:?}" , new_head) ) ?;
848
849
}
850
+
851
+ // Create a 'm/<manifest branch>' tag pointing to this commit.
852
+ let tag_name = format ! ( "m/{}" , manifest_branch) ;
853
+ repo. tag_lightweight ( & tag_name, new_head. as_object ( ) , true ) ?;
849
854
} else {
850
855
depot. clone_repo ( remote, project_name, revision, & project_path) ?;
851
856
}
You can’t perform that action at this time.
0 commit comments