From: Richard Hartmann Date: Sat, 26 Nov 2011 18:01:57 +0000 (+0100) Subject: Remove old cleanup code for `vcsh use` X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/e3ee7bd1b8f1ace113a86d4cdf0036a8f0de210d?hp=-c Remove old cleanup code for `vcsh use` --- e3ee7bd1b8f1ace113a86d4cdf0036a8f0de210d diff --git a/vcsh b/vcsh index 896cda8..2c4e726 100755 --- a/vcsh +++ b/vcsh @@ -126,9 +126,6 @@ run() { seed_gitignore() { use - # Switching directory as this has to be executed from $HOME to be of any use. - # Going back into old directory at the end in case `vcsh use` is reactivated. - old_dir="$PWD" cd "$HOME" gitignores=$(for file in $(git ls-files); do while true; do @@ -153,7 +150,6 @@ seed_gitignore() { fi mv -f "$tempfile" "$HOME/.gitignore.d/$VCSH_REPO_NAME" || fatal "could not move '$tempfile' to '$HOME/.gitignore.d/$VCSH_REPO_NAME'" 53 - cd "$old_dir" } setup() {