X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/6faa6bcc4756b2d6fe305081bbfd6321b21ae9fe..41f68579e858270d2b97deed93927922d46dde6d:/vcsh diff --git a/vcsh b/vcsh index 175a9d1..ced6909 100755 --- 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 + retire + hook post-clone-retired } delete() { @@ -246,6 +248,11 @@ push() { hook post-push } +retire() { + unset GIT_WORK_TREE + unset VCSH_DIRECTORY +} + rename() { git_dir_exists [ -d "$GIT_DIR_NEW" ] && fatal "'$GIT_DIR_NEW' exists" 54