mirror of
				https://git.proxmox.com/git/libgit2
				synced 2025-10-30 22:40:43 +00:00 
			
		
		
		
	 ca1b6e5409
			
		
	
	
		ca1b6e5409
		
	
	
	
	
		
			
			This extends git_repository_init_ext further with support for initializing the repository from an external template directory and with support for the "create shared" type flags that make a set GID repository directory. This also adds tests for much of the new functionality to the existing `repo/init.c` test suite. Also, this adds a bunch of new utility functions including a very general purpose `git_futils_mkdir` (with the ability to make paths and to chmod the paths post-creation) and a file tree copying function `git_futils_cp_r`. Also, this includes some new path functions that were useful to keep the code simple.
		
			
				
	
	
		
			15 lines
		
	
	
		
			398 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			398 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| #
 | |
| # An example hook script to verify what is about to be committed
 | |
| # by applypatch from an e-mail message.
 | |
| #
 | |
| # The hook should exit with non-zero status after issuing an
 | |
| # appropriate message if it wants to stop the commit.
 | |
| #
 | |
| # To enable this hook, rename this file to "pre-applypatch".
 | |
| 
 | |
| . git-sh-setup
 | |
| test -x "$GIT_DIR/hooks/pre-commit" &&
 | |
| 	exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
 | |
| :
 |