Skip to content

Commit 13abd91

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(run.go): only execute build if it will receive a pack file
1 parent bbc7f96 commit 13abd91

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/gitreceive/run.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ func Run(conf *Config) error {
7474
if err := receive(conf, builderKey, newRev); err != nil {
7575
return err
7676
}
77-
if err := build(conf, builderKey, newRev); err != nil {
78-
return err
77+
if strings.HasPrefix(conf.SSHOriginalCommand, "git-receive-pack") {
78+
if err := build(conf, builderKey, newRev); err != nil {
79+
return err
80+
}
7981
}
8082
}
8183
if err := scanner.Err(); err != nil {

0 commit comments

Comments
 (0)