Skip to content

Plugin that handles Git shell commands (specifically receive-pack) and initializes repos with hook scripts

License

Notifications You must be signed in to change notification settings

plushu/plushu-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plushu-git

Plugin that handles Git integration with Plushu, providing the behavior of git-shell, and the hooks to initialize repos with Plushu hooks

Why use hook scripts in the repository?

At first glance, this may seem to be more complicated than necessary. If this plugin provides the commands that control all git interactions, why not just include the hooking functionality in those commands, rather than interfering with the layout of the git repositories themselves?

The answer: git's hooks provide functionality that couldn't be replicated from outside the command, such as various information about the contents of the pack being received, and the ability to cancel the operation if the hook fails.

Ideally, we'd be able to provide a hook at the command line when forwarding to Git, but this functionality doesn't currently exist in Git. I've submitted a feature request to the Git mailing list suggesting this be added: until such time as that feature is implemented, this is the best solution.

About

Plugin that handles Git shell commands (specifically receive-pack) and initializes repos with hook scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages