File tree 1 file changed +7
-2
lines changed
components/content-service/pkg/initializer
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,11 @@ func (ws *GitInitializer) Run(ctx context.Context, mappings []archive.IDMapping)
110
110
return src , xerrors .Errorf ("git initializer gitClone: %w" , err )
111
111
}
112
112
113
- if ws .Chown {
113
+ defer func () {
114
+ span .SetTag ("Chown" , ws .Chown )
115
+ if ! ws .Chown {
116
+ return
117
+ }
114
118
// TODO (aledbf): refactor to remove the need of manual chown
115
119
args := []string {"-R" , "-L" , "gitpod" , ws .Location }
116
120
cmd := exec .Command ("chown" , args ... )
@@ -124,7 +128,8 @@ func (ws *GitInitializer) Run(ctx context.Context, mappings []archive.IDMapping)
124
128
}
125
129
return
126
130
}
127
- }
131
+ }()
132
+
128
133
if err := ws .realizeCloneTarget (ctx ); err != nil {
129
134
return src , xerrors .Errorf ("git initializer clone: %w" , err )
130
135
}
You can’t perform that action at this time.
0 commit comments