]> git.madduck.net Git - code/vcsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add hook post-clone-cleared
authorRichard Hartmann <richih.mailinglist@gmail.com>
Wed, 10 Jul 2013 09:48:12 +0000 (11:48 +0200)
committerRichard Hartmann <richih.mailinglist@gmail.com>
Wed, 10 Jul 2013 09:48:12 +0000 (11:48 +0200)
doc/hooks
vcsh

index 5547131cddc8c625e095bf13789833ac403a7fd6..81215727ae3641e114cc57aef0c3bbdb0354a84e 100644 (file)
--- a/doc/hooks
+++ b/doc/hooks
@@ -1,9 +1,14 @@
 Available hooks are:
 Available hooks are:
-pre-command
-post-command
-pre-enter
-post-enter
-pre-run
-post-run
-pre-upgrade
-post-upgrade
+
+* pre-command
+* post-command
+* pre-hook
+* post-hook
+* post-hook-cleared
+       use this if you need to operate on different git repositories after cloning
+* pre-enter
+* post-enter
+* pre-run
+* post-run
+* pre-upgrade
+* post-upgrade
diff --git a/vcsh b/vcsh
index 15ea0984f87a0540caef0c146fb76ca481d2bf86..c6257fe184be734c129fb84a37be5036ffe9ba9a 100755 (executable)
--- a/vcsh
+++ b/vcsh
@@ -153,6 +153,8 @@ clone() {
   Once this situation has been resolved, run 'vcsh run $VCSH_REPO_NAME git pull' to finish cloning.\n" 17
        git merge origin/master
        hook post-clone
   Once this situation has been resolved, run 'vcsh run $VCSH_REPO_NAME git pull' to finish cloning.\n" 17
        git merge origin/master
        hook post-clone
+       retire
+       hook post-clone-retired
 }
 
 delete() {
 }
 
 delete() {