Browse Source

#876: Update hooks is missing for forked repository

for-closed-social
Unknwon 9 years ago
parent
commit
b668fc7aad
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      models/repo.go

+ 4
- 0
models/repo.go View File

@ -1377,5 +1377,9 @@ func ForkRepository(u *User, oldRepo *Repository, name, desc string) (_ *Reposit
return nil, fmt.Errorf("git update-server-info: %v", err) return nil, fmt.Errorf("git update-server-info: %v", err)
} }
if err = createUpdateHook(repoPath); err != nil {
return nil, fmt.Errorf("createUpdateHook: %v", err)
}
return repo, sess.Commit() return repo, sess.Commit()
} }

Loading…
Cancel
Save