X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/1d8970fdb8d4adbfd5cdecc5d15da9db61efb39d..9d697e4db2b3f8444d0b4d6c668ed2d05e6eeb36:/vcsh diff --git a/vcsh b/vcsh index 159feda..c6257fe 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