Skip to content

Commit 71916c7

Browse files
committed
[supervisor] Don't install git msg annotation hook in headless workspaces
1 parent 58e1f55 commit 71916c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/supervisor/pkg/supervisor/supervisor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ func configureGit(cfg *Config) {
818818
settings = append(settings, []string{"user.email", cfg.GitEmail})
819819
}
820820

821-
if cfg.CommitAnnotationEnabled {
821+
if cfg.CommitAnnotationEnabled && !cfg.isHeadless() {
822822
err := setupGitMessageHook(filepath.Join(cfg.RepoRoot, ".git", "hooks"))
823823
if err != nil {
824824
log.WithError(err).Error("cannot setup git message hook")

0 commit comments

Comments
 (0)