File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
components/supervisor/pkg/supervisor Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -845,6 +845,9 @@ func setupGitMessageHook(path string) error {
845
845
if err := os .MkdirAll (path , 0755 ); err != nil {
846
846
return err
847
847
}
848
+ if err := os .Chown (path , gitpodUID , gitpodGID ); err != nil {
849
+ return err
850
+ }
848
851
849
852
fn := filepath .Join (path , "prepare-commit-msg" )
850
853
// do not override existing hooks. Relevant for workspaces based off of prebuilds, which might already have a hook.
@@ -854,6 +857,9 @@ func setupGitMessageHook(path string) error {
854
857
if err := os .WriteFile (fn , []byte (hookContent ), 0755 ); err != nil {
855
858
return err
856
859
}
860
+ if err := os .Chown (fn , gitpodUID , gitpodGID ); err != nil {
861
+ return err
862
+ }
857
863
858
864
return nil
859
865
}
You can’t perform that action at this time.
0 commit comments