@@ -59,9 +59,9 @@ namespace Harness {
59
59
exec ( "git" , [ "--work-tree" , submoduleDir , "clone" , config . cloneUrl , path . join ( submoduleDir , ".git" ) ] , { cwd } ) ;
60
60
}
61
61
else {
62
- exec ( "git" , [ "--git-dir" , path . join ( submoduleDir , ".git" ) , "--work-tree" , submoduleDir , "reset " , "HEAD" , "--hard "] , { cwd : submoduleDir } ) ;
63
- exec ( "git" , [ "--git-dir" , path . join ( submoduleDir , ".git" ) , "--work-tree" , submoduleDir , "clean" , "-f " ] , { cwd : submoduleDir } ) ;
64
- exec ( "git" , [ "--git-dir" , path . join ( submoduleDir , ".git" ) , "--work-tree" , submoduleDir , "pull" , "-f" ] , { cwd : submoduleDir } ) ;
62
+ exec ( "git" , [ "--git-dir" , path . join ( submoduleDir , ".git" ) , "--work-tree" , submoduleDir , "checkout " , ":/ " ] , { cwd : submoduleDir } ) ;
63
+ exec ( "git" , [ "--git-dir" , path . join ( submoduleDir , ".git" ) , "--work-tree" , submoduleDir , "clean" , "--force " ] , { cwd : submoduleDir } ) ;
64
+ exec ( "git" , [ "--git-dir" , path . join ( submoduleDir , ".git" ) , "--work-tree" , submoduleDir , "pull" ] , { cwd : submoduleDir } ) ;
65
65
}
66
66
67
67
types = config . types ;
0 commit comments