git svn and the post-receive hook

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

git svn and the post-receive hook

From: Pascal Obry <hidden>
Date: 2016-06-15 22:45:06

At the moment it seems to me that the post-receive hook is not called 
when tracking a remove Subversion repository.

I think it would be nice to call the post-receive hook at the end of:

    $ git svn rebase

Why I need this?

I'd like to check for example that if a file has been added to the 
remote Subversion repository then it is properly added into a MANIFEST 
file. I'd also like to check some style rules. This would help to detect 
some problems when one has no way to add hooks on the Subversion repository.

I have zero experience with Perl so I do not feel like hacking this myself.

What do you think?

Is this already possible (I may have missed something)?

Thanks,
Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595

Re: git svn and the post-receive hook

From: Miklos Vajna <hidden>
Date: 2016-06-15 22:45:06

On Sat, Aug 02, 2008 at 06:05:16PM +0200, Pascal Obry [off-list ref] wrote:
At the moment it seems to me that the post-receive hook is not called when 
tracking a remove Subversion repository.
Sure. From the "post-receive" hook documentation:

"This hook is invoked by 'git-receive-pack' on the remote repository,
which happens when a 'git-push' is done on a local repository."

And git svn will never invoke git receive-pack.
I think it would be nice to call the post-receive hook at the end of:

   $ git svn rebase
What about a post-rebase hook, like there is a post-merge one?
I have zero experience with Perl so I do not feel like hacking this myself.
git rebase is shell. ;-)

Re: git svn and the post-receive hook

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:06

Pascal Obry [off-list ref] writes:
At the moment it seems to me that the post-receive hook is not called
when tracking a remove Subversion repository.

I think it would be nice to call the post-receive hook at the end of:

   $ git svn rebase

Why I need this?

I'd like to check ...
Wait a minute.

Isn't "git svn rebase" an operation that you do on your local repository,
slurping the update from the other end and then replaying your change on
top of it?  If so, I think it falls into the same category as "post-fetch"
hook which would run after you run fetch, if such a thing existed.  See:

    http://thread.gmane.org/gmane.comp.version-control.git/79306/focus=79321

for the reason why we usually do not add such a hook on the local end.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help