From: a-sk Date: Mon, 1 Jul 2013 15:12:38 +0000 (+0400) Subject: Add pre/post-clone hooks X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/45fc3eb10b5bf03031edf96d1576bba77a0aaa96 Add pre/post-clone hooks --- 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() {