8000 GitHub - duerst/ruby-commit-hook: Git hooks for ruby/ruby repository
[go: up one dir, main page]

Skip to content

duerst/ruby-commit-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby commit hook Build Status

On each commit of Ruby repository, post-receive hook in this repository does:

  • Send notification to ruby-cvs@ruby-lang.org
  • Commit automatic styling:
    • remove trailing spaces
    • append newline at EOF
    • translit ChangeLog
    • expand tabs
  • Update version.h if date is changed
  • Request Redmine to fetch changesets
  • Mirror cgit to GitHub
  • Notify committer's Slack

How this repository is deployed to git.ruby-lang.org

  • /data/svn/repos/ruby: SVN repository of Ruby
    • hooks/post-commit: Run /home/git/ruby-commit-hook/hooks/post-commit.sh
  • /data/git/ruby.git: Bare Git repository of ruby
    • hooks/post-receive:
      • Update /home/git/ruby-commit-hook
      • Run /home/git/ruby-commit-hook/hooks/post-receive.sh
  • /data/git/ruby-commit-hook.git: Bare Git repository of ruby-commit-hook
  • /home/git/ruby-commit-hook: Cloned Git repository of ruby-commit-hook

Notes

  • There's a symlink /var/git -> /data/git.
  • User git's $HOME is NOT /home/git but /var/git.

Script used to update /home/git/ruby-commit-hook

/usr/bin/git -C /home/git/ruby-commit-hook fetch origin master
/usr/bin/git -C /home/git/ruby-commit-hook checkout origin/master

About

Git hooks for ruby/ruby repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 85.2%
  • Shell 14.8%
0