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
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. ;-)
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.