@@ -38,11 +38,13 @@ def update_single_repository(repo_path, branch, reset_to_remote, should_clean):
38
38
39
39
print ("--- Updating '" + repo_path + "' ---" )
40
40
with shell .pushd (repo_path , dry_run = False , echo = False ):
41
- shell .call (["git" , "fetch" ], echo = False )
41
+ shell .call (["git" , "fetch" ], echo = True )
42
42
43
43
if should_clean :
44
44
shell .call (['git' , 'clean' , '-fdx' ],
45
- echo = False )
45
+ echo = True )
46
+ shell .call (['git' , 'reset' , '--hard' , 'HEAD' ],
47
+ echo = True )
46
48
47
49
if branch :
48
50
status = shell .capture (['git' , 'status' , '--porcelain' , '-uno' ],
@@ -51,21 +53,21 @@ def update_single_repository(repo_path, branch, reset_to_remote, should_clean):
51
53
print ("Please, commit your changes." )
52
54
print (status )
53
55
exit (1 )
54
- shell .call (['git' , 'checkout' , branch ], echo = False )
56
+ shell .call (['git' , 'checkout' , branch ], echo = True )
55
57
56
58
# If we were asked to reset to the specified branch, do the hard
57
59
# reset and return.
58
60
if reset_to_remote :
59
61
shell .call (['git' , 'reset' , '--hard' , "origin/%s" % branch ],
60
- echo = False )
62
+ echo = True )
61
63
return
62
64
63
65
# Prior to Git 2.6, this is the way to do a "git pull
64
66
# --rebase" that respects rebase.autostash. See
65
67
# http://stackoverflow.com/a/30209750/125349
66
- shell .call (["git" , "rebase" , "FETCH_HEAD" ], echo = False )
68
+ shell .call (["git" , "rebase" , "FETCH_HEAD" ], echo = True )
67
69
shell .call (["git" , "submodule" , "update" , "--recursive" ],
68
- echo = False )
70
+ echo = True )
69
71
70
72
71
73
def update_all_repositories (args , config , scheme_name ):
@@ -119,10 +121,10 @@ def obtain_additional_swift_sources(
119
121
120
122
if skip_history :
121
123
shell .call (['git' , 'clone' , '--recursive' , '--depth' , '1' ,
122
- remote , repo_name ], echo = False )
124
+ remote , repo_name ], echo = True )
123
125
else :
124
126
shell .call (['git' , 'clone' , '--recursive' , remote ,
125
- repo_name ], echo = False )
127
+ repo_name ], echo = True )
126
128
if scheme_name :
127
129
for v in config ['branch-schemes' ].values ():
128
130
if scheme_name not in v ['aliases' ]:
0 commit comments