Skip to content

Commit 96b412b

Browse files
zeripathlafriks
authored andcommitted
Stop running hooks on pr merge (#6963)
* Stop running hooks on pr merge * Remove SSH_ORIGINAL_COMMAND from the pushing environment
1 parent 04f996f commit 96b412b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/helper_environment.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ func PushingEnvironment(doer *User, repo *Repository) []string {
1919

2020
sig := doer.NewGitSig()
2121

22+
// We should add "SSH_ORIGINAL_COMMAND=gitea-internal",
23+
// once we have hook and pushing infrastructure working correctly
2224
return append(os.Environ(),
2325
"GIT_AUTHOR_NAME="+sig.Name,
2426
"GIT_AUTHOR_EMAIL="+sig.Email,
@@ -30,7 +32,6 @@ func PushingEnvironment(doer *User, repo *Repository) []string {
3032
EnvPusherName+"="+doer.Name,
3133
EnvPusherID+"="+fmt.Sprintf("%d", doer.ID),
3234
ProtectedBranchRepoID+"="+fmt.Sprintf("%d", repo.ID),
33-
"SSH_ORIGINAL_COMMAND=gitea-internal",
3435
)
3536

3637
}

0 commit comments

Comments
 (0)