From 45fc3eb10b5bf03031edf96d1576bba77a0aaa96 Mon Sep 17 00:00:00 2001 From: a-sk Date: Mon, 1 Jul 2013 19:12:38 +0400 Subject: [PATCH 1/1] Add pre/post-clone hooks --- vcsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcsh b/vcsh index 71789fa..d778100 100755 --- a/vcsh +++ b/vcsh @@ -131,6 +131,7 @@ info() { } clone() { + hook pre-clone init git remote add origin "$GIT_REMOTE" git config branch.master.remote origin @@ -149,6 +150,7 @@ clone() { fatal "will stop after fetching and not try to merge! 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 } delete() { -- 2.39.5